Sha256: 02db90a9612a37e64b8f148cae0a4db6be63995ac821b3da2d8a4f35cf3c97bd
Contents?: true
Size: 357 Bytes
Versions: 26
Compression:
Stored size: 357 Bytes
Contents
class RenameColumnAccessHashToToken < ActiveRecord::Migration[5.2] def change if table_exists?(:spree_wishlists) rename_column(:spree_wishlists, :access_hash, :token) if column_exists?(:spree_wishlists, :access_hash) add_reference(:spree_wishlists, :store, index: true) unless column_exists?(:spree_wishlists, :store_id) end end end
Version data entries
26 entries across 26 versions & 1 rubygems