9 lines
314 B
Ruby
9 lines
314 B
Ruby
|
class Customer < ApplicationRecord
|
||
|
# Include default devise modules. Others available are:
|
||
|
# :confirmable, :lockable, :timeoutable, :trackable and :omniauthable
|
||
|
devise :database_authenticatable, :registerable,
|
||
|
:recoverable, :rememberable, :validatable
|
||
|
|
||
|
has_many :products, through: :purchases
|
||
|
end
|