Sha256: 7ca161c2f3fe94812c1e0e2d477f03ca9c1a706470caf4c2406e357eb7f963aa

Contents?: true

Size: 482 Bytes

Versions: 5

Compression:

Stored size: 482 Bytes

Contents

# 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 DrinkDesignerWithPolymorphicTouchChef < ActiveRecord::Base
  self.table_name = "drink_designers"

  has_one :chef, as: :employable, touch: true
end

class MocktailDesigner < DrinkDesigner
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ibm_db-5.5.0 test/models/drink_designer.rb
ibm_db-5.4.1 test/models/drink_designer.rb
ibm_db-5.4.0 test/models/drink_designer.rb
ibm_db-5.3.2 test/models/drink_designer.rb
ibm_db-5.3.1 test/models/drink_designer.rb