Sha256: b6dad09b7f8c0f3baa3b6cfd7ad9b7585f79d1cb79bff7e05092ef7f209ac68e
Contents?: true
Size: 676 Bytes
Versions: 11
Compression:
Stored size: 676 Bytes
Contents
class CreateComeeCoreSupplierInvoices < ActiveRecord::Migration[7.1] def change create_table :comee_core_supplier_invoices do |t| t.references :purchase_order, null: false, index: {name: "po_on_ccsi_indx"}, foreign_key: {to_table: :comee_core_purchase_orders} t.string :invoice_no, null: false t.date :date_issued t.float :total_price t.float :amount_paid, default: 0 t.integer :status, null: false, default: 0 t.integer :payment_status, null: false, default: 0 t.timestamps end add_index :comee_core_supplier_invoices, :invoice_no, unique: true end end
Version data entries
11 entries across 11 versions & 1 rubygems