Sha256: e6d82bcd453104807ce2917d164abed3749d69fe6ae4c61bcceff2952c303757

Contents?: true

Size: 1.19 KB

Versions: 12

Compression:

Stored size: 1.19 KB

Contents

# This migration comes from erp_products (originally 20110324010232)
class ProductRoleTypes
  
  def self.up
    ProdTypeRelnType.create(:internal_identifier => 'product_type_package_reln', :description => 'Product Type Package Relationship')
    ProdTypeRoleType.create(:internal_identifier => 'product_type_package', :description => 'Product Type Package')
    ProdTypeRoleType.create(:internal_identifier => 'packaged_product_type', :description => 'Packaged Product Type')

    ProdInstanceRelnType.create(:internal_identifier => 'product_instance_package_reln', :description => 'Product Instance Package Relantionship')
    ProdInstanceRoleType.create(:internal_identifier => 'product_instance_package', :description => 'Product Instance Package')
    ProdInstanceRoleType.create(:internal_identifier => 'packaged_product_instance', :description => 'Packaged Product Instance')
  end
  
  def self.down
   ['product_type_package_reln','product_type_package','packaged_product_type'].each do |iid|
     ProdTypeRelnType.iid(iid).destroy
   end

    ['product_instance_package_reln','product_instance_package','packaged_product_instance'].each do |iid|
     ProdInstanceRoleType.iid(iid).destroy
   end
  end

end

Version data entries

12 entries across 12 versions & 7 rubygems

Version Path
erp_orders-3.1.1 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_txns_and_accts-3.1.1 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_commerce-3.1.3 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_products-3.1.1 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_commerce-3.1.1 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_invoicing-3.1.0 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_financial_accounting-3.1.0 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_inventory-3.1.0 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_commerce-3.1.0 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_txns_and_accts-3.1.0 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_orders-3.1.0 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb
erp_products-3.1.0 spec/dummy/db/data_migrations/20110324010232_product_role_types.erp_products.rb