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