aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/hotel.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/hotel.rb')
-rw-r--r--activerecord/test/models/hotel.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/models/hotel.rb b/activerecord/test/models/hotel.rb
index b352cd22f3..491f8dfde3 100644
--- a/activerecord/test/models/hotel.rb
+++ b/activerecord/test/models/hotel.rb
@@ -3,4 +3,5 @@ class Hotel < ActiveRecord::Base
has_many :chefs, through: :departments
has_many :cake_designers, source_type: 'CakeDesigner', source: :employable, through: :chefs
has_many :drink_designers, source_type: 'DrinkDesigner', source: :employable, through: :chefs
+ has_many :recipes, through: :chefs
end