foodsoft/db/migrate/20171002000000_create_financial_links.rb
2022-02-20 16:28:54 +01:00

13 lines
377 B
Ruby

class CreateFinancialLinks < ActiveRecord::Migration[4.2]
def change
create_table :financial_links do |t|
t.text :note
end
add_column :financial_transactions, :financial_link_id, :integer
add_column :invoices, :financial_link_id, :integer
add_index :financial_transactions, :financial_link_id
add_index :invoices, :financial_link_id
end
end