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
spree_core-4.0.9 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.1.15 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.2.7 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.3.3 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.2.6 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.3.2 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.3.1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.3.0 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.3.0.rc3 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.3.0.rc2 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.3.0.rc1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.2.5 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.1.14 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.0.8 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.2.4 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.14.1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.2.3.1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.1.13.1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.0.7.1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.2.3 db/migrate/20140331100557_add_additional_store_fields.rb