Sha256: e1f7f3aef14fbe5a4f5fada3425805ba3739ca265f38b0f262726e14b324c70f
Contents?: true
Size: 1.38 KB
Versions: 35
Compression:
Stored size: 1.38 KB
Contents
class CreateComeeCoreCustomerOrders < ActiveRecord::Migration[7.1] def change create_table :comee_core_customer_orders do |t| t.string :order_number, null: false t.date :order_date, null: false t.references :client, null: false, index: {name: "client_on_cccuo_indx"}, foreign_key: {to_table: :comee_core_clients} t.string :order_terms t.string :consignee t.string :final_destination t.date :final_delivery_date t.date :consolidator_date t.date :handover_date t.date :shipping_date t.string :voyage_no t.string :shipping_arrangement t.references :shipment_address, null: true, index: {name: "sa_on_ccco_indx"}, foreign_key: {to_table: :comee_core_client_addresses} t.references :delivery_address, null: false, index: {name: "da_on_ccco_indx"}, foreign_key: {to_table: :comee_core_client_addresses} t.references :invoice_address, null: false, index: {name: "ia_on_ccco_indx"}, foreign_key: {to_table: :comee_core_client_addresses} t.integer :status, null: false, default: 0 t.timestamps end add_index :comee_core_customer_orders, :order_number, unique: true end end
Version data entries
35 entries across 35 versions & 1 rubygems