2020-08-07 01:14:14 +02:00
|
|
|
class CreateFinancialLinks < ActiveRecord::Migration[4.2]
|
2017-10-13 14:36:56 +02:00
|
|
|
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
|
2017-10-13 14:36:56 +02:00
|
|
|
end
|
|
|
|
end
|