Sha256: 3d72d9c2bd8674c93ba3bda79dee06e5aab251c1e87921caa32461cacab7912c
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
class CreateComeeCoreCustomerOrderItems < ActiveRecord::Migration[7.1] def change create_table :comee_core_customer_order_items do |t| t.references :customer_order, null: false, index: {name: "co_on_cccuoi_indx"}, foreign_key: {to_table: :comee_core_customer_orders} t.references :product, null: false, index: {name: "product_on_cccuoi_indx"}, foreign_key: {to_table: :comee_core_products} t.references :unit, null: false, index: {name: "unit_on_cccuoi_indx"}, foreign_key: {to_table: :comee_core_units} t.float :quantity, null: false, default: 0 t.float :price, null: false, default: 0 t.date :delivery_date, null: false t.timestamps end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
comee_core-0.1.40 | db/migrate/20230811102708_create_comee_core_customer_order_items.rb |