Sha256: e49f171bac841fdc8c804b945c7b7018eddc67f8c9fd071c241a0d471742b484

Contents?: true

Size: 231 Bytes

Versions: 2

Compression:

Stored size: 231 Bytes

Contents

class Employee < ActiveRecord::Base
  has_many :subordinates, class_name: Employee,
                          foreign_key: "manager_id",
                          dependent: :destroy

  belongs_to :manager, class_name: Employee
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dread-0.1.0 test/dummy/app/models/employee.rb
dread-0.0.7 test/dummy/app/models/employee.rb