Project

General

Profile

Actions

Bug #7425

closed

Execute a script by active record, the console is crash.

Added by fsword (John Lee) over 11 years ago. Updated almost 5 years ago.

Status:
Closed
Assignee:
-
Target version:
-
ruby -v:
ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]
Backport:
[ruby-core:49893]

Description

On my rails application, I write a script like this:

Stakeholder.find_each do |stakeholder|
stakeholder.resource_name = 'aaa'
stakeholder.save!
end

Then the pry console is crash. I do the same code on rake task and find the same situation.

versions:

ruby: 1.9.3-p286
rails: 3.2.8
rvm: 1.16.17 (master)
activerecord: 3.2.8
database: mysql Ver 14.14 Distrib 5.5.28


Files

bug.log (161 KB) bug.log fsword (John Lee), 11/23/2012 11:08 AM

Updated by mame (Yusuke Endoh) over 11 years ago

  • Status changed from Open to Feedback
  • Target version set to 2.0.0
  • ruby -v changed from 1.9.3-p286 to ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]

What's "Stakeholder"?
Please show us any reproducible code, or, disclose your rails application.

Please assume that we are ignorant about rails, or, contact on rails folks first.

You said "ruby: 1.9.3-p286", but the log says: "ruby 1.9.3p327 (2012-11-10 revision 37606) [x86_64-linux]".

--
Yusuke Endoh

Updated by ko1 (Koichi Sasada) about 11 years ago

  • Target version changed from 2.0.0 to 2.6

No feedback.

Updated by steveklabnik (Steve Klabnik) over 10 years ago

It's been 8 months since some extra feedback was asked for, is there any way we can get this information?

Actions #4

Updated by naruse (Yui NARUSE) over 6 years ago

  • Target version deleted (2.6)
Actions #5

Updated by jeremyevans0 (Jeremy Evans) almost 5 years ago

  • Status changed from Feedback to Closed
Actions

Also available in: Atom PDF

Like0
Like0Like0Like0Like0Like0