aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema/schema.rb
diff options
context:
space:
mode:
authorNick Rogers <ncrogers@gmail.com>2012-03-07 17:16:21 -0500
committerNick Rogers <ncrogers@gmail.com>2012-11-13 10:36:24 -0800
commit05e1466e059a12bddd066a9f22ca575d81cfc21d (patch)
tree5bb201db68f6a8d422169e40fb6976f6264e0855 /activerecord/test/schema/schema.rb
parent5ed0381db5e6dff1269f3f22ec4fa69c203c37d9 (diff)
downloadrails-05e1466e059a12bddd066a9f22ca575d81cfc21d.tar.gz
rails-05e1466e059a12bddd066a9f22ca575d81cfc21d.tar.bz2
rails-05e1466e059a12bddd066a9f22ca575d81cfc21d.zip
Fix deleting from a HABTM join table upon destroying an object of a model with optimistic locking enabled. Fixes #5332.
Diffstat (limited to 'activerecord/test/schema/schema.rb')
-rw-r--r--activerecord/test/schema/schema.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/schema/schema.rb b/activerecord/test/schema/schema.rb
index 8a3dfbb35a..67a20a610c 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -480,6 +480,11 @@ ActiveRecord::Schema.define do
t.references :best_friend_of
t.timestamps
end
+
+ create_table :peoples_treasures, :id => false, :force => true do |t|
+ t.column :rich_person_id, :integer
+ t.column :treasure_id, :integer
+ end
create_table :pets, :primary_key => :pet_id ,:force => true do |t|
t.string :name