aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/book.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/fixtures/book.rb')
-rw-r--r--activerecord/test/fixtures/book.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/book.rb b/activerecord/test/fixtures/book.rb
new file mode 100644
index 0000000000..cfd07abddc
--- /dev/null
+++ b/activerecord/test/fixtures/book.rb
@@ -0,0 +1,4 @@
+class Book < ActiveRecord::Base
+ has_many :citations, :foreign_key => 'book1_id'
+ has_many :references, :through => :citations, :source => :reference_of, :uniq => true
+end