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

@@ -0,0 +1,10 @@
class CreateTags < ActiveRecord::Migration[7.2]
def change
create_table :tags, id: :uuid do |t|
t.string :name
t.string "color", default: "#e99537", null: false
t.references :family, null: false, foreign_key: true, type: :uuid
t.timestamps
end
end
end

View File

@@ -0,0 +1,9 @@
class CreateTaggings < ActiveRecord::Migration[7.2]
def change
create_table :taggings, id: :uuid do |t|
t.references :tag, null: false, foreign_key: true, type: :uuid
t.references :taggable, polymorphic: true, type: :uuid
t.timestamps
end
end
end