Sha256: 1160e6b57d65c0b578cabce23893cfd97ddbf71d803e351a8e239879b31a6899

Contents?: true

Size: 248 Bytes

Versions: 141

Compression:

Stored size: 248 Bytes

Contents

class AddDefaultToSpreeStockLocations < ActiveRecord::Migration[4.2]
  def change
    unless column_exists? :spree_stock_locations, :default
      add_column :spree_stock_locations, :default, :boolean, null: false, default: false
    end
  end
end

Version data entries

141 entries across 141 versions & 2 rubygems

Version Path
solidus_core-2.0.0.beta1 db/migrate/20140717185932_add_default_to_spree_stock_locations.rb