Sha256: 58361875adfd49e10aa7b6cbc09a4598622c071307328c431abf0e38c4c1b4af
Contents?: true
Size: 666 Bytes
Versions: 1
Compression:
Stored size: 666 Bytes
Contents
# This migration comes from comable (originally 20140723175810) class CreateComableOrderItems < ActiveRecord::Migration def change create_table :comable_order_items do |t| t.references :order, null: false t.references :stock, null: false t.string :name, null: false t.string :code, null: false t.integer :price, null: false t.string :sku_h_item_name t.string :sku_v_item_name t.string :sku_h_choice_name t.string :sku_v_choice_name t.integer :quantity, default: 1, null: false t.timestamps null: false end add_index :comable_order_items, [:order_id, :stock_id], 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/20150814140748_create_comable_order_items.comable.rb |