Sha256: 284e6934cec82515fed5d17395d9d58ff3a93f50f534e0cf38e91b67da5a6456
Contents?: true
Size: 758 Bytes
Versions: 16
Compression:
Stored size: 758 Bytes
Contents
class CreateComeeCoreSalesOrders < ActiveRecord::Migration[7.0] def change create_table :comee_core_sales_orders do |t| t.string :order_number, null: false t.references :customer_order, null: false, index: {name: "co_on_ccso_indx"}, foreign_key: {to_table: :comee_core_customer_orders} t.float :payment_penalty, null: false, default: 0.0 t.integer :status, null: false, default: 0 t.float :total_price, null: false, default: 0 t.float :amount_paid, null: false, default: 0 t.string :pallete_note t.date :handover_date t.string :remark t.timestamps end add_index :comee_core_sales_orders, :order_number, unique: true end end
Version data entries
16 entries across 16 versions & 1 rubygems