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

Version Path
comee_core-0.2.57 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.56 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.55 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.54 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.53 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.52 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.51 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.50 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.49 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.48 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb
comee_core-0.2.47 db/migrate/20240328132454_create_comee_core_supplier_invoices.rb