Sha256: 170421fde7d248d8dcfc7d7b943c7a54df710cca8d9f41ff72c1634a90c36ea2

Contents?: true

Size: 714 Bytes

Versions: 2

Compression:

Stored size: 714 Bytes

Contents

class CreateInvTxnTypes
  
  def self.up

    def self.up
      # Create the distinct stop types used by work orders + complex shipments
      base_type = BizTxnType.create( :internal_identifier => "inventory_txn", :description => "Inventory Transaction")
      inv_pickup = BizTxnType.create( :internal_identifier => "inventory_pickup_txn", :description => "Inventory Pickup Transaction")
      inv_dropoff = BizTxnType.create( :internal_identifier => "inventory_dropoff_txn", :description => "Inventory Dropoff Transaction")

    end

  end
  
  def self.down
    BizTxnType.iid('inv_txn').destroy
    BizTxnType.iid('inventory_pickup_txn').destroy
    BizTxnType.iid('inventory_dropoff_txn').destroy
  end

end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
erp_inventory-4.2.0 db/data_migrations/20131206033154_create_inv_txn_types.rb
erp_inventory-4.0.0 db/data_migrations/20131206033154_create_inv_txn_types.rb