aboutsummaryrefslogblamecommitdiffstats
path: root/activerecord/test/models/chef.rb
blob: 9d3dd01016ae0d533d38aca6fd45ea8bd725650b (plain) (tree)
1
2
3
4
5
6
7
8

                                           
                   
   



                                                
class Chef < ActiveRecord::Base
  belongs_to :employable, polymorphic: true
  has_many :recipes
end

class ChefList < Chef
  belongs_to :employable_list, polymorphic: true
end