Sha256: 7f508864e9d1038cde8d4fa6ef08e4a101f2cdfe589c8727d8d5407456bc4849
Contents?: true
Size: 933 Bytes
Versions: 35
Compression:
Stored size: 933 Bytes
Contents
class CreateComeeCoreInvoices < ActiveRecord::Migration[7.0] def change create_table :comee_core_invoices do |t| t.string :invoice_no, null: false t.references :sales_order, null: false, index: {name: "co_on_cci_indx"}, foreign_key: {to_table: :comee_core_sales_orders} t.references :pod, null: false, index: {name: "pod_on_cci_indx"}, foreign_key: {to_table: :comee_core_pods} t.date :date_issued t.date :due_date t.float :total_price t.float :amount_paid, default: 0 t.float :vat, default: 0 t.string :payment_term t.integer :notifications_sent t.integer :status, null: false, default: 0 t.integer :payment_status, null: false, default: 0 t.timestamps end add_index :comee_core_invoices, :invoice_no, unique: true end end
Version data entries
35 entries across 35 versions & 1 rubygems