This repository has been archived on 2020-05-27. You can view files and clone it, but cannot push or open issues/pull-requests.
grindable/db/migrate/004_add_ledger_fund_relatio...

12 lines
251 B
Ruby

class AddLedgerFundRelationship < ActiveRecord::Migration
def self.up
add_column :ledgers, :fund_id, :integer
add_index :ledgers, :fund_id
end
def self.down
drop_column :ledgers, :fund_id
drop_index :ledgers, :fund_id
end
end