diff options
author | Neeraj Singh <neerajdotname@gmail.com> | 2010-07-19 15:32:00 -0400 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-07-20 16:45:42 -0700 |
commit | f576d7cf848717384799a9e9669b253ccc94deb5 (patch) | |
tree | 4cf0e9c980e133c713374477e17411236f24aaf6 /activerecord/test/models | |
parent | a63566dda8246bd57e80032a1213532d0dc2ae0b (diff) | |
download | rails-f576d7cf848717384799a9e9669b253ccc94deb5.tar.gz rails-f576d7cf848717384799a9e9669b253ccc94deb5.tar.bz2 rails-f576d7cf848717384799a9e9669b253ccc94deb5.zip |
Ensure that primary_keys of HABTM records is not double quoted
[#5152 state:reslved]
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/country.rb | 7 | ||||
-rw-r--r-- | activerecord/test/models/treaty.rb | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/activerecord/test/models/country.rb b/activerecord/test/models/country.rb new file mode 100644 index 0000000000..15e3a1de0b --- /dev/null +++ b/activerecord/test/models/country.rb @@ -0,0 +1,7 @@ +class Country < ActiveRecord::Base + + set_primary_key :country_id + + has_and_belongs_to_many :treaties + +end diff --git a/activerecord/test/models/treaty.rb b/activerecord/test/models/treaty.rb new file mode 100644 index 0000000000..b46537f0d2 --- /dev/null +++ b/activerecord/test/models/treaty.rb @@ -0,0 +1,7 @@ +class Treaty < ActiveRecord::Base + + set_primary_key :treaty_id + + has_and_belongs_to_many :countries + +end |