Sha256: 17f95ddce8d67edce974581e742270fa60ec87e730a64beabfa76a0cdc719f4e

Contents?: true

Size: 180 Bytes

Versions: 2

Compression:

Stored size: 180 Bytes

Contents

class Employee < ActiveRecord::Base
  belongs_to :reports_to, class_name: 'Employee', foreign_key: 'reports_to_employee_id'
  has_many :customers, foreign_key: 'support_rep_id'
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
chinook_database-0.1.6 lib/chinook_database/models/employee.rb
chinook_database-0.1.5 lib/chinook_database/models/employee.rb