Sha256: 3e7c5306252dc754b85938d232b495061ff6055017f5885a156d2849a959f25b

Contents?: true

Size: 372 Bytes

Versions: 141

Compression:

Stored size: 372 Bytes

Contents

class AddAdditionalStoreFields < ActiveRecord::Migration[4.2]
  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

141 entries across 141 versions & 2 rubygems

Version Path
solidus_core-2.0.0.beta1 db/migrate/20140331100557_add_additional_store_fields.rb