test/dummy/app/models/user.rb in dread-0.0.2 vs test/dummy/app/models/user.rb in dread-0.0.3
- old
+ new
@@ -1,4 +1,5 @@
class User < ActiveRecord::Base
- has_many :tweets, dependent: :destroy
- has_many :comments, dependent: :destroy
+ has_many :tweets, dependent: :destroy
+ has_many :comments, dependent: :destroy
+ has_one :setting, dependent: :delete, class_name: 'AccountSetting'
end
\ No newline at end of file