Sha256: 05df45bdba65d9ab4d48105f17d66ede7e63201fedaa9bd886f64a025015c486

Contents?: true

Size: 671 Bytes

Versions: 45

Compression:

Stored size: 671 Bytes

Contents

class CreatePaymentMethods < ActiveRecord::Migration
  def self.up
    create_table :payment_methods do |t|
      t.string :type
      t.string :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

  def self.down
    drop_table :payment_methods
  end
end

Version data entries

45 entries across 33 versions & 8 rubygems

Version Path
spree_core-0.70.7 db/migrate/20100209025806_create_payment_methods.rb
spree_core-0.70.6 db/migrate/20100209025806_create_payment_methods.rb
apispree_core-0.0.0 db/migrate/20100209025806_create_payment_methods.rb
My-Commerce_core-1.1.0 db/migrate/20100209025806_create_payment_methods.rb
My-Commerce_core-1.0.0 db/migrate/20100209025806_create_payment_methods.rb
MyCommerceapi-1.0.0 core/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerceapi-1.0.0 dash/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerceapi-1.0.0 api/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerceapi-1.0.0 sandbox/db/migrate/20100209025806_create_payment_methods.rb
MyCommerceapi-1.0.0 auth/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerceapi-1.0.0 core/db/migrate/20100209025806_create_payment_methods.rb
MyCommerceapi-1.0.0 promo/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerce-0.0.3 sandbox/db/migrate/20100209025806_create_payment_methods.rb
MyCommerce-0.0.3 api/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerce-0.0.3 auth/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerce-0.0.3 core/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerce-0.0.3 dash/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerce-0.0.3 promo/spec/test_app/db/migrate/20100209025806_create_payment_methods.rb
MyCommerce-0.0.3 core/db/migrate/20100209025806_create_payment_methods.rb
rfcommerce_sandbox-0.0.3 db/migrate/20100209025806_create_payment_methods.rb