Sha256: 83842d942a40f57bc94ea854ab36ffbc0468b6904cd48595b96afa9211e7a8fb

Contents?: true

Size: 826 Bytes

Versions: 1

Compression:

Stored size: 826 Bytes

Contents

class AddProductTypeViewTypes

  def self.up
    product_type_view_type = ViewType.create(description: 'Product Type Descriptions',
                                             internal_identifier: 'product_type_description')

    list = ViewType.create(description: 'List Description',
                            internal_identifier: 'list_description')
    list.move_to_child_of(product_type_view_type)

    short = ViewType.create(description: 'Short Description',
                            internal_identifier: 'short_description')
    short.move_to_child_of(product_type_view_type)

    long = ViewType.create(description: 'Long Description',
                            internal_identifier: 'long_description')
    long.move_to_child_of(product_type_view_type)
  end

  def self.down
    #remove data here
  end

end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
erp_products-4.2.0 db/data_migrations/20141222195727_add_product_type_view_types.rb