super-graph/example/app/models/customer.rb

9 lines
314 B
Ruby
Raw Normal View History

2019-03-24 14:57:29 +01:00
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