Sha256: 6900d1fae19764155c4c9734518662ebae64c4a0337d492a0d83375e816b24c0
Contents?: true
Size: 798 Bytes
Versions: 10
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
10 entries across 10 versions & 2 rubygems