mirror of
https://github.com/openfoodfoundation/openfoodnetwork
synced 2026-01-25 20:46:48 +00:00
17 lines
602 B
Ruby
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
|