Sha256: d2b2a0feb2045485cd76fee42263944a9e28fb2bfe9c00470d7d77bb9aac489b

Contents?: true

Size: 434 Bytes

Versions: 9

Compression:

Stored size: 434 Bytes

Contents

# This migration comes from spree (originally 20140331100557)
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

9 entries across 9 versions & 2 rubygems

Version Path
spree_purchase_order-3.7.0 spec/dummy/db/migrate/20191113195846_add_additional_store_fields.spree.rb
spree_billing_sisow-0.9.2 spec/dummy/db/migrate/20190729091787_add_additional_store_fields.spree.rb
spree_billing_sisow-0.9.1 spec/dummy/db/migrate/20190729091787_add_additional_store_fields.spree.rb
spree_purchase_order-3.6.0 spec/dummy/db/migrate/20180516181975_add_additional_store_fields.spree.rb
spree_purchase_order-3.5.0 spec/dummy/db/migrate/20180516181975_add_additional_store_fields.spree.rb
spree_purchase_order-3.5.0.rc1 spec/dummy/db/migrate/20180516181975_add_additional_store_fields.spree.rb
spree_purchase_order-3.4.0 spec/dummy/db/migrate/20180516181975_add_additional_store_fields.spree.rb
spree_purchase_order-3.3.0 spec/dummy/db/migrate/20180516181975_add_additional_store_fields.spree.rb
spree_purchase_order-3.2.0 spec/dummy/db/migrate/20180516181975_add_additional_store_fields.spree.rb