Skip to content

armgit / maybe

Public Imported from GitHub
0

The personal finance app for everyone

395 B
Raw Blame
class CreateAccounts < ActiveRecord::Migration[7.2]
  def change
    create_table :accounts, id: :uuid do |t|
      t.string :type
      t.string :subtype
      t.references :family, null: false, foreign_key: true, type: :uuid
      t.string :name
      t.bigint :balance, default: 0
      t.string :currency, default: "USD"

      t.timestamps
    end

    add_index :accounts, :type
  end
end