From d8842d83862fc26de22b3a6ed0a89e56f87b2e7e Mon Sep 17 00:00:00 2001 From: HombreLaser Date: Sat, 1 Apr 2023 13:07:39 -0600 Subject: AƱade controlador de Reviews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/models/user_account.rb | 1 + 1 file changed, 1 insertion(+) (limited to 'app/models/user_account.rb') diff --git a/app/models/user_account.rb b/app/models/user_account.rb index 23f7c5b..0fe5c3d 100644 --- a/app/models/user_account.rb +++ b/app/models/user_account.rb @@ -11,6 +11,7 @@ class UserAccount < ApplicationRecord has_many :user_account_addresses, dependent: :destroy has_many :addresses, through: :user_account_addresses has_many :cards, dependent: :destroy + has_many :product_reviews validates :email, presence: true validates :email, uniqueness: true -- cgit v1.2.3