Sha256: c92634dbd6ac89fd62262c225e6ebad883110ac2caa8886cc8a3ac4b53e13796

Contents?: true

Size: 737 Bytes

Versions: 3

Compression:

Stored size: 737 Bytes

Contents

class CreateComeeCorePaymentDeposits < ActiveRecord::Migration[7.1]
  def change
    create_table :comee_core_payment_deposits do |t|
      t.references :client,
                   null: false,
                   index: {name: "client_on_ccpd_indx"},
                   foreign_key: {to_table: :comee_core_clients}
      t.string :reference_no, null: false
      t.string :bank_reference
      t.references :currency,
                   null: false,
                   index: {name: "currency_on_ccpd_indx"},
                   foreign_key: {to_table: :comee_core_currencies}
      t.date :date_issued, null: false
      t.float :amount, null: false
      t.integer :status, null: false, default: 0

      t.timestamps
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
comee_core-0.2.28 db/migrate/20240125003634_create_comee_core_payment_deposits.rb
comee_core-0.2.27 db/migrate/20240125003634_create_comee_core_payment_deposits.rb
comee_core-0.2.26 db/migrate/20240125003634_create_comee_core_payment_deposits.rb