Sha256: 040cb738eebdf5a79a8b2ab1891d3425564a465ab59f30d6988c2cc18f0bff5e
Contents?: true
Size: 1.23 KB
Versions: 9
Compression:
Stored size: 1.23 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.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 :parent_client_name t.string :payment_term t.string :delivery_term 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.string :created_by t.timestamps end add_index :comee_core_sales_orders, :order_number, unique: true end end
Version data entries
9 entries across 9 versions & 1 rubygems