Sha256: 8559d9f92b421de883506473d539031728899a26f2ca0daeb8660499e6bd8748

Contents?: true

Size: 234 Bytes

Versions: 141

Compression:

Stored size: 234 Bytes

Contents

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

141 entries across 141 versions & 2 rubygems

Version Path
solidus_core-2.0.0.beta1 db/migrate/20150121022521_remove_environment_from_payment_method.rb