Sha256: 2db32dcff311d3e58669331cf368f998fcd45cf0cabbc1dee0ab9acbeb826a15

Contents?: true

Size: 464 Bytes

Versions: 1

Compression:

Stored size: 464 Bytes

Contents

# This migration comes from comable (originally 20140502060116)
class CreateComableStocks < ActiveRecord::Migration
  def change
    create_table :comable_stocks do |t|
      t.references :product, null: false
      t.string :code, null: false
      t.integer :quantity, null: false, default: 0
      t.string :sku_h_choice_name
      t.string :sku_v_choice_name
      t.timestamps null: false
    end

    add_index :comable_stocks, :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/20150814140746_create_comable_stocks.comable.rb