Sha256: 54d6fad4a016d5ea47e2772f6a75dede23b2fafaa442f8ed14770dc311cf49f2
Contents?: true
Size: 565 Bytes
Versions: 10
Compression:
Stored size: 565 Bytes
Contents
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
10 entries across 10 versions & 1 rubygems