Sha256: 32d9e64432104111b458882c4e9e6f7bc24f43cb065e54f340a504335d0a6f09
Contents?: true
Size: 1.07 KB
Versions: 16
Compression:
Stored size: 1.07 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
16 entries across 16 versions & 1 rubygems