Sha256: 6cef36b1129ff8a1e84a82ab38a0d941f640413df74015633ceb4eb8b66456f1

Contents?: true

Size: 396 Bytes

Versions: 3

Compression:

Stored size: 396 Bytes

Contents

class CreateComableStocks < Comable::Migration
  def change
    create_table :comable_stocks do |t|
      t.integer :comable_product_id
      t.integer :product_id_num
      t.string :code, null: false
      t.integer :quantity
      t.string :sku_h_choice_name
      t.string :sku_v_choice_name
    end

    add_index :comable_stocks, :code, unique: true, name: :comable_stocks_idx_01
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comable-0.0.3 db/migrate/20140502060116_create_comable_stocks.rb
comable-0.0.2 db/migrate/20140502060116_create_comable_stocks.rb
comable-0.0.1 db/migrate/20140502060116_create_comable_stocks.rb