Sha256: fbf29cda6760911ccbd6f9f37a02a0ed7acbede2062716fa42a9cf519bea410a

Contents?: true

Size: 688 Bytes

Versions: 4

Compression:

Stored size: 688 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.timestamps
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
comee_core-0.2.25 db/migrate/20240125003634_create_comee_core_payment_deposits.rb
comee_core-0.2.24 db/migrate/20240125003634_create_comee_core_payment_deposits.rb
comee_core-0.2.23 db/migrate/20240125003634_create_comee_core_payment_deposits.rb
comee_core-0.2.22 db/migrate/20240125003634_create_comee_core_payment_deposits.rb