Sha256: 6d0ec9423f3f0894cc4eb41654d97ca249066a2d32a210a57f42d589baafcaeb
Contents?: true
Size: 961 Bytes
Versions: 44
Compression:
Stored size: 961 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.string :customer_item_no, null: false t.float :quantity, null: false, default: 0 t.float :price, null: false, default: 0 t.date :delivery_date, null: false t.boolean :canceled, default: false t.timestamps end end end
Version data entries
44 entries across 44 versions & 1 rubygems