Sha256: f0c84e85205cd1acd38c4acb2f2ede71c4636a91928764058bfe70e872f93609
Contents?: true
Size: 1017 Bytes
Versions: 26
Compression:
Stored size: 1017 Bytes
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.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.timestamps end add_index :comee_core_sales_orders, :order_number, unique: true end end
Version data entries
26 entries across 26 versions & 1 rubygems