Sha256: b9070cbbf1372b1fc337b6215070dcdd81c7a8fe91ca544ec9bedcaac9488331

Contents?: true

Size: 402 Bytes

Versions: 8

Compression:

Stored size: 402 Bytes

Contents

class CreateComableProducts < ActiveRecord::Migration
  def change
    create_table :comable_products do |t|
      t.string :name, null: false
      t.string :code, null: false
      t.integer :price, null: false
      t.text :caption
      t.string :sku_h_item_name
      t.string :sku_v_item_name
      t.timestamps null: false
    end

    add_index :comable_products, :code, unique: true
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
comable-core-0.7.1 db/migrate/20131214194807_create_comable_products.rb
comable-core-0.7.0 db/migrate/20131214194807_create_comable_products.rb
comable-core-0.7.0.beta2 db/migrate/20131214194807_create_comable_products.rb
comable-core-0.7.0.beta1 db/migrate/20131214194807_create_comable_products.rb
comable-core-0.6.0 db/migrate/20131214194807_create_comable_products.rb
comable_core-0.5.0 db/migrate/20131214194807_create_comable_products.rb
comable_core-0.4.2 db/migrate/20131214194807_create_comable_products.rb
comable_core-0.4.1 db/migrate/20131214194807_create_comable_products.rb