From 248b0440dd3202fef87879bfac4b4b946fe3767d Mon Sep 17 00:00:00 2001 From: Nikola Trandafilovic Date: Fri, 11 Nov 2011 14:58:23 +0100 Subject: [PATCH] Removed net bank and autopayment fields from ledgers table --- ...20111109122603_remove_net_bank_and_auto_payment.rb | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 db/migrate/20111109122603_remove_net_bank_and_auto_payment.rb diff --git a/db/migrate/20111109122603_remove_net_bank_and_auto_payment.rb b/db/migrate/20111109122603_remove_net_bank_and_auto_payment.rb new file mode 100644 index 0000000..eacf958 --- /dev/null +++ b/db/migrate/20111109122603_remove_net_bank_and_auto_payment.rb @@ -0,0 +1,11 @@ +class RemoveNetBankAndAutoPayment < ActiveRecord::Migration + def self.up + remove_column :ledgers, :net_bank + remove_column :ledgers, :auto_payment + end + + def self.down + add_column :ledgers, :auto_payment , :boolean + add_column :ledgers, :net_bank , :boolean + end +end