aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/fixtures/author.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/fixtures/author.rb')
-rw-r--r--activerecord/test/fixtures/author.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/fixtures/author.rb b/activerecord/test/fixtures/author.rb
index 06b0aaa1ae..1a7aa6e388 100644
--- a/activerecord/test/fixtures/author.rb
+++ b/activerecord/test/fixtures/author.rb
@@ -3,6 +3,7 @@ class Author < ActiveRecord::Base
has_many :posts_with_comments, :include => :comments, :class_name => "Post"
has_many :posts_with_categories, :include => :categories, :class_name => "Post"
has_many :posts_with_comments_and_categories, :include => [ :comments, :categories ], :order => "posts.id", :class_name => "Post"
+ has_many :comments, :through => :posts
has_many :special_posts, :class_name => "Post"
has_many :hello_posts, :class_name => "Post", :conditions=>"\#{aliased_table_name}.body = 'hello'"