aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/rating.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/rating.rb')
-rw-r--r--activerecord/test/models/rating.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/rating.rb b/activerecord/test/models/rating.rb
index cf06bc6931..49aa38285f 100644
--- a/activerecord/test/models/rating.rb
+++ b/activerecord/test/models/rating.rb
@@ -3,4 +3,5 @@
class Rating < ActiveRecord::Base
belongs_to :comment
has_many :taggings, as: :taggable
+ has_many :taggings_without_tag, -> { left_joins(:tag).where("tags.id": nil) }, as: :taggable, class_name: "Tagging"
end