Luke C. wrote:
Your code freezing on the self.target.save line, made me think you had a
before_save filter. The Building.find(1008631573) freezing makes me
think that there’s something un-vanilla about your rails install.
Try removing all plugins, gems and any initializers that you have and
see if the problem goes away. If that doesn’t work, create a fresh rails
project and add your model code and see if the new project has any
Does your model have any methods in it that are declared in AR::Base ?
I ran the tests some more times and I got a new frozen hash error for
some reason which is now on this line. It’s the same object: Building:
RuntimeError: can’t modify frozen hash
The model itself is not using any specific gems but has 3 belongs_to’s
and and 4 has_many’s. Therefore I would kinda need to copy half the
application to the newly created project…
What I also ran into is this error: ActiveRecord::StatementInvalid:
Mysql::LockWaitTimeout: Lock wait timeout exceeded; try restarting
transaction. Got it when I ran the same test but on a completely
Can I somehow check what froze the hash and locked the other one? I
never had any of these problems in Rails 2.