class RemoveEnvironmentFromPaymentMethod < ActiveRecord::Migration
  def up
    Spree::PaymentMethod.where('environment != ?', Rails.env).update_all(active: false)
    remove_column :spree_payment_methods, :environment
  end
end

Remove the environment column from payment_method
Remove the environment column from payment_method

Sets any payment method not in the current environment to be inactive.
Can't be reversed as we have set the active = false

(cherry picked from commit 42cf3f0155b218d506afc3a8e653db73b6a442fa in freerunningtech/spree)
