Sha256: aa57691479d9b22700a24caceb459455faac12fc6a6d10e81153e4aad9f547b5
Contents?: true
Size: 854 Bytes
Versions: 130
Compression:
Stored size: 854 Bytes
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 :shipment_address t.string :final_destination t.date :final_delivery_date t.date :handover_date t.date :shipping_date t.string :delivery_address, null: false t.string :invoice_address, null: false 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
130 entries across 130 versions & 1 rubygems