1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-02 13:24:20 +01:00
fab-manager/db/migrate/20190314095931_add_operator_to_invoice.rb
2019-03-18 11:11:09 +01:00

7 lines
203 B
Ruby

class AddOperatorToInvoice < ActiveRecord::Migration
def change
add_column :invoices, :operator_id, :integer
add_foreign_key :invoices, :users, column: :operator_id, primary_key: :id
end
end