Sha256: d1ea0ec4dfd1d9a34ea190301b16339cb11c261b30e604ea9a6aebf92a0ac8f1
Contents?: true
Size: 614 Bytes
Versions: 5
Compression:
Stored size: 614 Bytes
Contents
class CreateComableOrderDetails < ActiveRecord::Migration def change create_table :comable_order_details 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 end add_index :comable_order_details, [:order_id, :stock_id], unique: true, name: :comable_order_details_idx_01 end end
Version data entries
5 entries across 5 versions & 1 rubygems