diff options
author | HombreLaser <sebastian-440@live.com> | 2023-04-04 20:45:40 -0600 |
---|---|---|
committer | HombreLaser <sebastian-440@live.com> | 2023-04-04 20:45:40 -0600 |
commit | 7dd7989bba156dc2e790ff6daa9df31cfa0ed7cd (patch) | |
tree | ceeef9c344d5cd45a497fc97e0b9cb1a7a8e2b20 /app/models | |
parent | 96ce018912ceffb7270b883a8982b1e2403cda1c (diff) |
Arregladas migraciones de tabla Carts
Diffstat (limited to 'app/models')
-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 0fe5c3d..3e05056 100644 --- a/app/models/user_account.rb +++ b/app/models/user_account.rb @@ -8,6 +8,7 @@ # session_key: string class UserAccount < ApplicationRecord has_secure_password validations: false + has_one :cart, dependent: :destroy has_many :user_account_addresses, dependent: :destroy has_many :addresses, through: :user_account_addresses has_many :cards, dependent: :destroy |