Sha256: a4ad7e4c05687a143fce00ba9a6a30388c8f11752f851b9f5a4a2bc603cc2b3e
Contents?: true
Size: 390 Bytes
Versions: 6
Compression:
Stored size: 390 Bytes
Contents
class AddBillingDateToBillingAccount < ActiveRecord::Migration def up unless columns(:billing_accounts).collect {|c| c.name}.include?('billing_date') add_column :billing_accounts, :billing_date, :date end end def down if columns(:billing_accounts).collect {|c| c.name}.include?('billing_date') remove_column :billing_accounts, :billing_date end end end
Version data entries
6 entries across 6 versions & 1 rubygems