diff options
author | Robert Pankowecki <robert.pankowecki@gmail.com> | 2010-07-27 22:57:27 +0200 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2010-08-02 16:41:20 +0200 |
commit | f8b53f35b9cbf2a134a7d9184a044ce95764acfa (patch) | |
tree | 33e6076c3d06295f3442f70ae141a2421dd6a00c /activerecord/test/models | |
parent | 558ee6e95ccd6c2098595f2edfa59e8aa9108167 (diff) | |
download | rails-f8b53f35b9cbf2a134a7d9184a044ce95764acfa.tar.gz rails-f8b53f35b9cbf2a134a7d9184a044ce95764acfa.tar.bz2 rails-f8b53f35b9cbf2a134a7d9184a044ce95764acfa.zip |
test and fix collection_singular_ids= with string primary keys [#5125 state:resolved]
Signed-off-by: José Valim <jose.valim@gmail.com>
Diffstat (limited to 'activerecord/test/models')
-rw-r--r-- | activerecord/test/models/book.rb | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/activerecord/test/models/book.rb b/activerecord/test/models/book.rb index cfd07abddc..1e030b4f59 100644 --- a/activerecord/test/models/book.rb +++ b/activerecord/test/models/book.rb @@ -1,4 +1,7 @@ class Book < ActiveRecord::Base has_many :citations, :foreign_key => 'book1_id' has_many :references, :through => :citations, :source => :reference_of, :uniq => true + + has_many :subscriptions + has_many :subscribers, :through => :subscriptions end |