mirror of
https://github.com/internetee/registry.git
synced 2025-08-05 09:21:43 +02:00
parent
31f39d92b2
commit
3afd542b1a
5 changed files with 64 additions and 2 deletions
|
@ -0,0 +1,6 @@
|
|||
class RenameAccountActivityLogPricelistIdToPriceId < ActiveRecord::Migration
|
||||
def change
|
||||
rename_column :account_activities, :log_pricelist_id, :price_id
|
||||
add_foreign_key :account_activities, :prices
|
||||
end
|
||||
end
|
|
@ -0,0 +1,6 @@
|
|||
class AddAccountActivityAccountIdForeignKey < ActiveRecord::Migration
|
||||
def change
|
||||
change_column :account_activities, :account_id, :integer, null: false
|
||||
add_foreign_key :account_activities, :accounts
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddAccountActivityInvoiceIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :account_activities, :invoices
|
||||
end
|
||||
end
|
|
@ -0,0 +1,5 @@
|
|||
class AddAccountActivityBankTransactionIdFk < ActiveRecord::Migration
|
||||
def change
|
||||
add_foreign_key :account_activities, :bank_transactions
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue