diff options
author | Dmitry Polushkin <dmitry.polushkin@gmail.com> | 2011-09-09 08:31:54 +0100 |
---|---|---|
committer | Dmitry Polushkin <dmitry.polushkin@gmail.com> | 2011-09-09 08:31:54 +0100 |
commit | edd2f21e8095fe4a38e812025b4d9fd0e0cc28f1 (patch) | |
tree | f5c6e656d2961e727c8de1c6aea846ad9f9c54c3 /activerecord/test/schema/schema.rb | |
parent | ac1a363c6ed889d11e8fabd6dd69a8a6df9e3cfd (diff) | |
download | rails-edd2f21e8095fe4a38e812025b4d9fd0e0cc28f1.tar.gz rails-edd2f21e8095fe4a38e812025b4d9fd0e0cc28f1.tar.bz2 rails-edd2f21e8095fe4a38e812025b4d9fd0e0cc28f1.zip |
Test polymorphic record with optimistic locking and counter cache should be destoyed without catching the ActiveRecord::StaleObjectError.
Diffstat (limited to 'activerecord/test/schema/schema.rb')
-rw-r--r-- | activerecord/test/schema/schema.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb index 64e0452100..4b3afce812 100644 --- a/activerecord/test/schema/schema.rb +++ b/activerecord/test/schema/schema.rb @@ -105,6 +105,7 @@ ActiveRecord::Schema.define do t.string :name t.integer :engines_count t.integer :wheels_count + t.column :lock_version, :integer, :null => false, :default => 0 end create_table :categories, :force => true do |t| |