Sha256: 2a229a539ce8d53dfe1ed88755a17e8e387457663cfd578eeb791a3728035a3d

Contents?: true

Size: 778 Bytes

Versions: 3

Compression:

Stored size: 778 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 :client_order,
        null: false,
        index: {name: "co_on_cci_indx"},
        foreign_key: {to_table: :comee_core_client_orders}
      t.date :date_issued, null: false
      t.string :ship_name
      t.date :delivery_date
      t.string :voyage_no
      t.float :additional_charges
      t.float :total_price
      t.string :payment_term, null: false
      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

3 entries across 3 versions & 1 rubygems

Version Path
comee_core-0.1.12 db/migrate/20230915205522_create_comee_core_invoices.rb
comee_core-0.1.11 db/migrate/20230915205522_create_comee_core_invoices.rb
comee_core-0.1.10 db/migrate/20230915205522_create_comee_core_invoices.rb