aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/schema
diff options
context:
space:
mode:
authorNick Rogers <ncrogers@gmail.com>2012-03-07 23:56:23 -0500
committerNick Rogers <ncrogers@gmail.com>2012-03-07 23:56:23 -0500
commit2931f413a51f75e7365ac7dfe2e0bc2a27224c94 (patch)
tree0bbb05cd75a42e305c1bc441aeb143dc9142c51d /activerecord/test/schema
parent03888825e26000cab4310c28c17146e05332667a (diff)
downloadrails-2931f413a51f75e7365ac7dfe2e0bc2a27224c94.tar.gz
rails-2931f413a51f75e7365ac7dfe2e0bc2a27224c94.tar.bz2
rails-2931f413a51f75e7365ac7dfe2e0bc2a27224c94.zip
Tests for removing a HABTM association when optimistic locking is enabled.
Diffstat (limited to 'activerecord/test/schema')
-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 428a85ab4e..097a973107 100644
--- a/activerecord/test/schema/schema.rb
+++ b/activerecord/test/schema/schema.rb
@@ -467,6 +467,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