super-graph/examples/rails-app/app/models/customer.rb
2019-10-05 00:49:39 -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