aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models
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/models
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/models')
-rw-r--r--activerecord/test/models/person.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/person.rb b/activerecord/test/models/person.rb
index d2a0c6b40c..ad06afcace 100644
--- a/activerecord/test/models/person.rb
+++ b/activerecord/test/models/person.rb
@@ -83,3 +83,9 @@ class TightPerson < ActiveRecord::Base
end
class TightDescendant < TightPerson; end
+
+class RichPerson < ActiveRecord::Base
+ self.table_name = 'people'
+
+ has_and_belongs_to_many :treasures, :join_table => 'peoples_treasures'
+end