Sha256: 01877fc772fd27ae07a014f1eb912cd0b3bba2b028a2f014edbe0a71fdbb05b7

Contents?: true

Size: 238 Bytes

Versions: 1

Compression:

Stored size: 238 Bytes

Contents

class AddForeignKeysToEmployeeHeirarchies < ActiveRecord::Migration
  def change
    add_foreign_key(:employee_heirarchies, :users, column: 'employee_id')
    add_foreign_key(:employee_heirarchies, :users, column: 'manager_id')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
multiinsert-0.0.1 db/migrate/20130305150244_add_foreign_keys_to_employee_heirarchies.rb