aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/models/shop.rb
diff options
context:
space:
mode:
Diffstat (limited to 'activerecord/test/models/shop.rb')
-rw-r--r--activerecord/test/models/shop.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/models/shop.rb b/activerecord/test/models/shop.rb
index 81414227ea..607a0a5b41 100644
--- a/activerecord/test/models/shop.rb
+++ b/activerecord/test/models/shop.rb
@@ -5,6 +5,11 @@ module Shop
class Product < ActiveRecord::Base
has_many :variants, :dependent => :delete_all
+ belongs_to :type
+
+ class Type < ActiveRecord::Base
+ has_many :products
+ end
end
class Variant < ActiveRecord::Base