diff options
author | HombreLaser <sebastian-440@live.com> | 2023-03-30 17:29:40 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-03-30 17:29:40 -0600 |
commit | 2ae0cd8a8dc6d630ee1a7a84ddf6111609dbdeb7 (patch) | |
tree | bbcaadbea3da32ee974d28cfb37c1af4be018215 /app/models/user_account.rb | |
parent | efc5eb10894fc95487c55628b94024e97cd60139 (diff) |
Mejora la estructura de los specs
Diffstat (limited to 'app/models/user_account.rb')
-rw-r--r-- | app/models/user_account.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/user_account.rb b/app/models/user_account.rb index ea6f9a6..23f7c5b 100644 --- a/app/models/user_account.rb +++ b/app/models/user_account.rb @@ -10,6 +10,7 @@ class UserAccount < ApplicationRecord has_secure_password validations: false has_many :user_account_addresses, dependent: :destroy has_many :addresses, through: :user_account_addresses + has_many :cards, dependent: :destroy validates :email, presence: true validates :email, uniqueness: true |