Create tagging system (#792)

* Repro

* Fix

* Update signage

* Create tagging system

* Add tags to transaction imports

* Build tagging UI

* Cleanup

* More cleanup
This commit is contained in:
Zach Gollwitzer
2024-05-23 08:09:33 -04:00
committed by GitHub
parent 41c991384a
commit 457247da8e
38 changed files with 607 additions and 90 deletions

View File

@@ -5,6 +5,9 @@ class Transaction < ApplicationRecord
belongs_to :category, optional: true
belongs_to :merchant, optional: true
has_many :taggings, as: :taggable, dependent: :destroy
has_many :tags, through: :taggings
validates :name, :date, :amount, :account, presence: true
monetize :amount