Sha256: d6374f0f98089a64be214c2bc12086f48bc592f659ff50af0b27c6a70fa484d5
Contents?: true
Size: 550 Bytes
Versions: 3
Compression:
Stored size: 550 Bytes
Contents
class CreateComeeCoreClientOrderItems < ActiveRecord::Migration[7.0] def change create_table :comee_core_client_order_items do |t| t.references :client_order, null: false, index: {name: "co_on_coi_indx"}, foreign_key: {to_table: :comee_core_client_orders} t.references :product, null: false, index: {name: "po_on_coi_indx"}, foreign_key: {to_table: :comee_core_products} t.integer :quantity, null: false t.integer :price, null: false t.timestamps end end end
Version data entries
3 entries across 3 versions & 1 rubygems