# This migration comes from spree (originally 20140331100557) class AddAdditionalStoreFields < ActiveRecord::Migration def change add_column :spree_stores, :code, :string unless column_exists?(:spree_stores, :code) add_column :spree_stores, :default, :boolean, default: false, null: false unless column_exists?(:spree_stores, :default) add_index :spree_stores, :code add_index :spree_stores, :default end end