Sha256: c6f5d2791cc397bd818dc6f2ed9358947036c1a7c5537223af38e28d5f40ba25

Contents?: true

Size: 291 Bytes

Versions: 3

Compression:

Stored size: 291 Bytes

Contents

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

Version data entries

3 entries across 3 versions & 2 rubygems

Version Path
spree_weight_calculator-0.1.0 test/dummy/db/migrate/20160723192631_remove_environment_from_payment_method.spree.rb
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103549_remove_environment_from_payment_method.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112501_remove_environment_from_payment_method.spree.rb