appirits/comable

View on GitHub
core/db/migrate/20131214194807_create_comable_products.rb

Summary

Maintainability
A
0 mins
Test Coverage
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