Sha256: 46f1caf726e35da652a6410f25002f119cccc6b68f1e565b5a3d6dff249001e2
Contents?: true
Size: 367 Bytes
Versions: 101
Compression:
Stored size: 367 Bytes
Contents
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
Version data entries
101 entries across 101 versions & 2 rubygems