aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/drink_designer.rb
blob: 8258408f35e93ee6d4d8937b369110badb5e752e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
# frozen_string_literal: true

class DrinkDesigner < ActiveRecord::Base
  has_one :chef, as: :employable
end

class DrinkDesignerWithPolymorphicDependentNullifyChef < ActiveRecord::Base
  self.table_name = "drink_designers"

  has_one :chef, as: :employable, dependent: :nullify
end

class MocktailDesigner < DrinkDesigner
end