Sha256: d9dee0058355e4dab0747bb6670fc6b0b0cd30fe4b2f6ff0bd2491f5a951d965
Contents?: true
Size: 634 Bytes
Versions: 12
Compression:
Stored size: 634 Bytes
Contents
# This migration comes from erp_products (originally 20110527160807) class AddDefaultProdAvailTypes def self.up ProdAvailabilityStatusType.create( :description => 'Available', :internal_identifier => 'available' ) ProdAvailabilityStatusType.create( :description => 'Sold', :internal_identifier => 'sold' ) ProdAvailabilityStatusType.create( :description => 'Shipped', :internal_identifier => 'shipped' ) end def self.down %w(available sold shipped).each do |iid| ProdAvailabilityStatusType.find_by_internal_identifier(iid).destroy end end end
Version data entries
12 entries across 12 versions & 7 rubygems