Sha256: 73fe16b9de950da428dfd146e87c34359faebf12bfc0a459d5c6f4bbe4452724

Contents?: true

Size: 466 Bytes

Versions: 1

Compression:

Stored size: 466 Bytes

Contents

# This migration comes from comable (originally 20131214194807)
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

1 entries across 1 versions & 1 rubygems

Version Path
comable-apartment-0.0.1 test/dummy/db/migrate/20150814140744_create_comable_products.comable.rb