From a4e461bccee482c40e69be9310ba12de5d7da59b Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Fri, 24 Mar 2023 20:34:23 -0600 Subject: Fixes de addresses_controller --- app/models/user_account.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'app/models/user_account.rb') 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 -- cgit v1.2.3