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.1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.7 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.0.0 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.0.0.rc3 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.6 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.5 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.0.0.rc2 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.0.0.rc1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-4.0.0.beta db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.4 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.3 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.2 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.0 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.0.rc3 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.2.9 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.0.rc2 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.7.0.rc1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.6.6 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.6.5 db/migrate/20140331100557_add_additional_store_fields.rb