Sha256: fca28446fd8802efd8bc9b40d1bbc27d3b657cfc5f89988f1c250217c39b3fcd

Contents?: true

Size: 277 Bytes

Versions: 6

Compression:

Stored size: 277 Bytes

Contents

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

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516182041_remove_environment_from_tracker.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516182041_remove_environment_from_tracker.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516182041_remove_environment_from_tracker.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516182041_remove_environment_from_tracker.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516182041_remove_environment_from_tracker.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516182041_remove_environment_from_tracker.spree.rb