mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-24 15:49:39 +02:00
Add institution management and account editing controls (#868)
* Add institution management * Allow user to select institution on create or edit * Improve redirect behavior * Final cleanup * i18n normalization
This commit is contained in:
parent
8c1a7af37f
commit
9956a9540e
36 changed files with 456 additions and 68 deletions
11
db/migrate/20240612164751_create_institutions.rb
Normal file
11
db/migrate/20240612164751_create_institutions.rb
Normal file
|
@ -0,0 +1,11 @@
|
|||
class CreateInstitutions < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
create_table :institutions, id: :uuid do |t|
|
||||
t.string :name, null: false
|
||||
t.string :logo_url
|
||||
t.references :family, null: false, foreign_key: true, type: :uuid
|
||||
|
||||
t.timestamps
|
||||
end
|
||||
end
|
||||
end
|
5
db/migrate/20240612164944_add_institution_to_accounts.rb
Normal file
5
db/migrate/20240612164944_add_institution_to_accounts.rb
Normal file
|
@ -0,0 +1,5 @@
|
|||
class AddInstitutionToAccounts < ActiveRecord::Migration[7.2]
|
||||
def change
|
||||
add_reference :accounts, :institution, foreign_key: true, type: :uuid
|
||||
end
|
||||
end
|
Loading…
Add table
Add a link
Reference in a new issue