Sha256: 9c1342b9083bbb81e07552f9d1555db02a11a2771d2dc9cec95cd6a4c310025a

Contents?: true

Size: 429 Bytes

Versions: 11

Compression:

Stored size: 429 Bytes

Contents

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

11 entries across 11 versions & 5 rubygems

Version Path
spree_weight_calculator-0.1.0 test/dummy/db/migrate/20160723192568_add_additional_store_fields.spree.rb
spree_order_reporting-0.0.3 spec/dummy/db/migrate/20160708163165_add_additional_store_fields.spree.rb
spree_order_reporting-0.0.2 spec/dummy/db/migrate/20160707103489_add_additional_store_fields.spree.rb
spree_order_reporting-0.0.1 spec/dummy/db/migrate/20160706112441_add_additional_store_fields.spree.rb
sprangular-0.1.0 spec/dummy/db/migrate/20140814105766_add_additional_store_fields.spree.rb
sprangular-0.0.1 spec/dummy/db/migrate/20140814105766_add_additional_store_fields.spree.rb
spree_mercado_pago-0.2.3 spec/dummy/db/migrate/20141204014759_add_additional_store_fields.spree.rb
spree_mercado_pago-0.2.2 spec/dummy/db/migrate/20141204014759_add_additional_store_fields.spree.rb
spree_mercado_pago-0.2.1 spec/dummy/db/migrate/20141112193542_add_additional_store_fields.spree.rb
spree_mercado_pago-0.2.0 spec/dummy/db/migrate/20141112193542_add_additional_store_fields.spree.rb
spree_mercado_pago_payment_method-0.2.0 spec/dummy/db/migrate/20141112193542_add_additional_store_fields.spree.rb