summaryrefslogtreecommitdiff
path: root/app/models
diff options
context:
space:
mode:
authorHombreLaser <sebastian-440@live.com>2023-03-24 20:34:23 -0600
committerHombreLaser <sebastian-440@live.com>2023-03-24 20:34:23 -0600
commita4e461bccee482c40e69be9310ba12de5d7da59b (patch)
tree393c62df15091d88083ad4841d95e9d0083534c3 /app/models
parent92994313506152f366d91f845aa1ff59e84b0acd (diff)
Fixes de addresses_controller
Diffstat (limited to 'app/models')
-rw-r--r--app/models/user_account.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/app/models/user_account.rb b/app/models/user_account.rb
index 0f94003..ea6f9a6 100644
--- a/app/models/user_account.rb
+++ b/app/models/user_account.rb
@@ -8,7 +8,7 @@
# session_key: string
class UserAccount < ApplicationRecord
has_secure_password validations: false
- has_many :user_account_addresses
+ has_many :user_account_addresses, dependent: :destroy
has_many :addresses, through: :user_account_addresses
validates :email, presence: true