mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 23:59:40 +02:00
Initial commit
This commit is contained in:
commit
99de24ac70
147 changed files with 3519 additions and 0 deletions
16
db/migrate/20240202015428_create_accounts.rb
Normal file
16
db/migrate/20240202015428_create_accounts.rb
Normal file
|
@ -0,0 +1,16 @@
|
|||
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
|
Loading…
Add table
Add a link
Reference in a new issue