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

Version Path
spree_core-3.1.14 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.13 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.12 db/migrate/20140331100557_add_additional_store_fields.rb
solidus_core-1.4.2 db/migrate/20140331100557_add_additional_store_fields.rb
solidus_core-1.3.2 db/migrate/20140331100557_add_additional_store_fields.rb
solidus_core-1.2.3 db/migrate/20140331100557_add_additional_store_fields.rb
solidus_core-1.1.4 db/migrate/20140331100557_add_additional_store_fields.rb
solidus_core-1.0.7 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.11 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.10 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.9 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.8 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.7 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.6 db/migrate/20140331100557_add_additional_store_fields.rb
solidus_core-1.4.1 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.5 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.4 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.3 db/migrate/20140331100557_add_additional_store_fields.rb
spree_core-3.1.2 db/migrate/20140331100557_add_additional_store_fields.rb
solidus_core-1.4.0 db/migrate/20140331100557_add_additional_store_fields.rb