Sha256: 71741f3f722c40f0262c487c91a4142e5798598e2fd1e181d82d3b469e67f19f
Contents?: true
Size: 1.46 KB
Versions: 72
Compression:
Stored size: 1.46 KB
Contents
class CreateComeeCoreSalesOrders < ActiveRecord::Migration[7.0] def change create_table :comee_core_sales_orders do |t| t.string :order_number, null: false t.date :order_date, null: false t.references :customer_order, null: false, index: {name: "co_on_ccso_indx"}, foreign_key: {to_table: :comee_core_customer_orders} t.references :fulfillment_center, null: true, index: {name: "fc_on_ccso_indx"}, foreign_key: {to_table: :comee_core_fulfillment_centers} t.references :client, null: false, index: {name: "client_on_ccso_indx"}, foreign_key: {to_table: :comee_core_clients} t.string :order_terms t.string :shipment_address t.string :delivery_address t.string :invoice_address t.string :destination t.date :shipping_date t.date :delivery_date t.date :handover_date t.string :consignee t.string :parent_client_name t.string :payment_term t.string :delivery_term t.float :payment_penalty, default: 0 t.integer :status, null: false, default: 0 t.float :total_price, default: 0.0 t.float :amount_paid, default: 0.0 t.string :pallete_note t.string :remark t.string :created_by t.timestamps end add_index :comee_core_sales_orders, :order_number, unique: true end end
Version data entries
72 entries across 72 versions & 1 rubygems