Sha256: e06c22676b9474f2ce484876aa14c8a2eaa2fb292ab0349ef0e302b60f4ac88b
Contents?: true
Size: 420 Bytes
Versions: 2
Compression:
Stored size: 420 Bytes
Contents
class AddBizTxnAcctRootIdToInvoiceItem < ActiveRecord::Migration def up unless column_exists? :invoice_items, :biz_txn_acct_root_id add_column :invoice_items, :biz_txn_acct_root_id, :integer add_index :invoice_items, :biz_txn_acct_root_id end end def down if column_exists? :invoice_items, :biz_txn_acct_root_id remove_column :invoice_items, :biz_txn_acct_root_id end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
erp_invoicing-4.2.0 | db/migrate/20151217185838_add_biz_txn_acct_root_id_to_invoice_item.rb |
erp_invoicing-4.1.0 | db/migrate/20151217185838_add_biz_txn_acct_root_id_to_invoice_item.rb |