foodsoft/db/migrate/20171002000000_create_financial_links.rb

14 lines
377 B
Ruby
Raw Normal View History

class CreateFinancialLinks < ActiveRecord::Migration[4.2]
def change
create_table :financial_links do |t|
t.text :note
end
2022-02-20 16:15:22 +01:00
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