Sha256: 7e39c9d79ae38f9d9f62056ffabb2ad1e8e43d7d1a9f79cdb9646a0721f0d069
Contents?: true
Size: 1.52 KB
Versions: 38
Compression:
Stored size: 1.52 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.integer :purchase_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
38 entries across 38 versions & 1 rubygems