aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/drink_designer.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/drink_designer.rb')
-rw-r--r--activerecord/test/models/drink_designer.rb6
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/test/models/drink_designer.rb b/activerecord/test/models/drink_designer.rb
index eb6701b84e..8258408f35 100644
--- a/activerecord/test/models/drink_designer.rb
+++ b/activerecord/test/models/drink_designer.rb
@@ -4,5 +4,11 @@ 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