Files
mozo-backend/app/models/employee.rb
T

11 lines
319 B
Ruby

class Employee
include SimplyStored::Couch
devise :database_authenticatable, :recoverable, :rememberable, :trackable #, :omniauthable, :omniauth_providers => [:facebook] #, :token_authenticatable , :registerable
belongs_to :supplier
has_many :orders
has_and_belongs_to_many :lists, storing_keys: false
end