super-graph/rails-app/app/models/customer.rb
2019-04-11 01:10:51 -04:00

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