Sha256: f138aea81b337f7a45a4633bcc9322988d620f378401b7663a62821a1180127c

Contents?: true

Size: 410 Bytes

Versions: 5

Compression:

Stored size: 410 Bytes

Contents

class CreateProductProperties < ActiveRecord::Migration

  def change
    create_table :market_product_properties do |t|
      t.text :value
      t.references :product
      t.index :product_id
      t.foreign_key :market_products, column: :product_id

      t.references :property
      t.index :property_id
      t.foreign_key :market_properties, column: :property_id

      t.timestamps
    end
  end

end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
coalla-cms-0.4.2.0 lib/generators/coalla/cms/market/templates/migrations/create_product_properties.rb
coalla-cms-0.5.2.4 lib/generators/coalla/cms/market/templates/migrations/create_product_properties.rb
coalla-cms-0.4.4.3 lib/generators/coalla/cms/market/templates/migrations/create_product_properties.rb
coalla-cms-0.5.1.9 lib/generators/coalla/cms/market/templates/migrations/create_product_properties.rb
coalla-cms-0.5.1.8 lib/generators/coalla/cms/market/templates/migrations/create_product_properties.rb