Sha256: 29d89460187a26abbcf94f53d8750d57f15cea1d610659803f0bd9ab66874d5a

Contents?: true

Size: 798 Bytes

Versions: 20

Compression:

Stored size: 798 Bytes

Contents

# frozen_string_literal: true
# This migration comes from spree (originally 20190220093635)

class DropSpreeStoreCreditUpdateReasons < ActiveRecord::Migration[5.1]
  # This migration should run in a subsequent deploy after 20180710170104
  # has been already deployed. See also migration 20180710170104.

  # We can't add back the table in a `down` method here: a previous version
  # of migration 20180710170104 would fail with `table already exists` , as
  # it handles itself the add/remove of this table and column.
  def up
    if table_exists? :spree_store_credit_update_reasons
      drop_table :spree_store_credit_update_reasons
    end

    if column_exists? :spree_store_credit_events, :update_reason_id
      remove_column :spree_store_credit_events, :update_reason_id
    end
  end
end

Version data entries

20 entries across 20 versions & 7 rubygems

Version Path
solidus_i18n-2.2.0 spec/dummy/db/migrate/20210218213845_drop_spree_store_credit_update_reasons.spree.rb
solidus_i18n-2.1.1 spec/dummy/db/migrate/20210218213845_drop_spree_store_credit_update_reasons.spree.rb
solidus_auth_devise-2.5.4 spec/dummy/db/migrate/20211112052465_drop_spree_store_credit_update_reasons.spree.rb
solidus_i18n-2.1.0 spec/dummy/db/migrate/20210218213845_drop_spree_store_credit_update_reasons.spree.rb
solidus_auth_devise-2.5.3 spec/dummy/db/migrate/20210129115377_drop_spree_store_credit_update_reasons.spree.rb
solidus_auth_devise-2.5.2 spec/dummy/db/migrate/20201006131568_drop_spree_store_credit_update_reasons.spree.rb
solidus_auth_devise-2.5.1 spec/dummy/db/migrate/20201006131568_drop_spree_store_credit_update_reasons.spree.rb
solidus_auth_devise-2.5.0 spec/dummy/db/migrate/20201006131568_drop_spree_store_credit_update_reasons.spree.rb
solidus_reviews-1.4.1 spec/dummy/db/migrate/20200810122134_drop_spree_store_credit_update_reasons.spree.rb
solidus_billing_address-0.0.7 spec/dummy/db/migrate/20191128105366_drop_spree_store_credit_update_reasons.spree.rb
solidus_billing_address-0.0.6 spec/dummy/db/migrate/20191122155265_drop_spree_store_credit_update_reasons.spree.rb
solidus_drip-0.1.0 spec/dummy/db/migrate/20191101230332_drop_spree_store_credit_update_reasons.spree.rb
solidus_drip-0.0.1 spec/dummy/db/migrate/20191101230332_drop_spree_store_credit_update_reasons.spree.rb
solidus_billing_address-0.0.5 spec/dummy/db/migrate/20191028084778_drop_spree_store_credit_update_reasons.spree.rb
solidus_billing_address-0.0.4 spec/dummy/db/migrate/20190926134969_drop_spree_store_credit_update_reasons.spree.rb
solidus_billing_address-0.0.3 spec/dummy/db/migrate/20190924075663_drop_spree_store_credit_update_reasons.spree.rb
solidus_billing_address-0.0.2 spec/dummy/db/migrate/20190920154653_drop_spree_store_credit_update_reasons.spree.rb
solidus_billing_address-0.0.1 spec/dummy/db/migrate/20190823131029_drop_spree_store_credit_update_reasons.spree.rb
solidus_bank_transfer-0.0.1 spec/dummy/db/migrate/20190822070945_drop_spree_store_credit_update_reasons.spree.rb
alchemy-solidus-2.3.0 spec/dummy/db/migrate/20190311112277_drop_spree_store_credit_update_reasons.spree.rb