2020-03-24 16:45:27 +01:00
|
|
|
# frozen_string_literal:true
|
|
|
|
|
|
|
|
class AddOperatorToInvoice < ActiveRecord::Migration[4.2]
|
2019-03-18 11:11:09 +01:00
|
|
|
def change
|
|
|
|
add_column :invoices, :operator_id, :integer
|
|
|
|
add_foreign_key :invoices, :users, column: :operator_id, primary_key: :id
|
|
|
|
end
|
|
|
|
end
|