Sha256: 516381dd379e9520bb340ff7de69dc5a4bcf6f284502b973cd615aaeec103b3e

Contents?: true

Size: 296 Bytes

Versions: 9

Compression:

Stored size: 296 Bytes

Contents

# This migration comes from spree (originally 20150121022521)
class RemoveEnvironmentFromPaymentMethod < ActiveRecord::Migration[4.2]
  def up
    Spree::PaymentMethod.where('environment != ?', Rails.env).update_all(active: false)
    remove_column :spree_payment_methods, :environment
  end
end

Version data entries

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195909_remove_environment_from_payment_method.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091850_remove_environment_from_payment_method.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091850_remove_environment_from_payment_method.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182038_remove_environment_from_payment_method.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182038_remove_environment_from_payment_method.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182038_remove_environment_from_payment_method.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182038_remove_environment_from_payment_method.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182038_remove_environment_from_payment_method.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182038_remove_environment_from_payment_method.spree.rb