aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/chef.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/chef.rb')
-rw-r--r--activerecord/test/models/chef.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/chef.rb b/activerecord/test/models/chef.rb
index 698a52e045..ff528644bc 100644
--- a/activerecord/test/models/chef.rb
+++ b/activerecord/test/models/chef.rb
@@ -1,4 +1,10 @@
+# frozen_string_literal: true
+
class Chef < ActiveRecord::Base
belongs_to :employable, polymorphic: true
has_many :recipes
end
+
+class ChefList < Chef
+ belongs_to :employable_list, polymorphic: true
+end