Sha256: dd765ea17c260e7d26dfd71f859c53e0d60e173a15217bda7eebd61655c9e145
Contents?: true
Size: 915 Bytes
Versions: 15
Compression:
Stored size: 915 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.boolean :canceled, default: false t.timestamps end end end
Version data entries
15 entries across 15 versions & 1 rubygems