Files
openfoodnetwork/db/migrate/20120327000581_create_payment_methods.rb
Andrew Spinks cd1938a74e spree install.
2012-03-27 11:06:49 +11:00

17 lines
602 B
Ruby

class CreatePaymentMethods < ActiveRecord::Migration
def change
create_table :payment_methods do |t|
t.string :type, :name
t.text :description
t.boolean :active, :default => true
t.string :environment, :default => 'development'
t.timestamps
end
# TODO - also migrate any legacy configurations for gateways and billing integrations before dropping the old tables
# we probably also need to do this inside the payment_gateway extension b/c table won't exist yet in fresh bootstrap
#drop_table :billing_integrations
#drop_table :gateways
end
end