mirror of
https://github.com/maybe-finance/maybe.git
synced 2025-07-19 05:09:38 +02:00
* Add institution management * Allow user to select institution on create or edit * Improve redirect behavior * Final cleanup * i18n normalization
7 lines
181 B
Ruby
7 lines
181 B
Ruby
class Institution < ApplicationRecord
|
|
belongs_to :family
|
|
has_many :accounts, dependent: :nullify
|
|
has_one_attached :logo
|
|
|
|
scope :alphabetically, -> { order(name: :asc) }
|
|
end
|