diff --git a/app/models/user.rb b/app/models/user.rb index c845c4fdc..6b630072f 100644 --- a/app/models/user.rb +++ b/app/models/user.rb @@ -46,6 +46,7 @@ class User < ActiveRecord::Base accepts_nested_attributes_for :tags, allow_destroy: true has_one :wallet, dependent: :destroy + has_many :wallet_transactions, dependent: :destroy has_many :exports, dependent: :destroy