1
0
mirror of https://github.com/LaCasemate/fab-manager.git synced 2024-12-04 15:24:23 +01:00
fab-manager/db/migrate/20190314095931_add_operator_to_invoice.rb

7 lines
203 B
Ruby
Raw Normal View History

2019-03-18 11:11:09 +01:00
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