Sha256: 4af37b6356680cf6f6d3b692b3a067c76809abfd798d6e9e495d6e6afc6d8c7d

Contents?: true

Size: 206 Bytes

Versions: 11

Compression:

Stored size: 206 Bytes

Contents

class AddPendingToInventoryUnit < ActiveRecord::Migration
  def change
    add_column :spree_inventory_units, :pending, :boolean, default: true
    Spree::InventoryUnit.update_all(pending: false)
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
solidus_core-1.4.2 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.3.2 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.4.1 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.4.0 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.4.0.rc1 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.4.0.beta1 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.3.1 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.3.0 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.3.0.rc2 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.3.0.rc1 db/migrate/20130227143905_add_pending_to_inventory_unit.rb
solidus_core-1.3.0.beta1 db/migrate/20130227143905_add_pending_to_inventory_unit.rb