Sha256: d29d2ecc906d149c0fda2f445435127bf500f186de171b8c45598a0682d5bb57
Contents?: true
Size: 1.04 KB
Versions: 10
Compression:
Stored size: 1.04 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, default: -> { "CURRENT_DATE" } t.date :expected_delivery_date, null: false t.references :client, null: false, index: {name: "client_on_ccso_indx"}, foreign_key: {to_table: :comee_core_clients} t.json :client_terms t.integer :payment_no_of_days, null: false, default: 0 t.float :payment_discount, null: false, default: 0.0 t.float :payment_penalty, null: false, default: 0.0 t.integer :status, null: false, default: 0 t.string :delivery_address, null: false t.string :invoice_address, null: false t.float :total_price, null: true, default: 0 t.float :amount_paid, null: true, default: 0 t.float :amount_due, null: true, default: 0 t.string :remark t.timestamps end add_index :comee_core_sales_orders, :order_number, unique: true end end
Version data entries
10 entries across 10 versions & 1 rubygems