fulltext search

This commit is contained in:
Pete Matsyburka committed 2025-06-06 16:03:16 +03:00
1 parent 9d1860f038
commit 33811945be
36 files changed
+682 -25

No files matched your search

+2
View File
@@ -42,6 +42,8 @@ class Template < ApplicationRecord
belongs_to :account
belongs_to :folder, class_name: 'TemplateFolder'
has_one :search_entry, as: :record, inverse_of: :record, dependent: :destroy
before_validation :maybe_set_default_folder, on: :create
attribute :preferences, :string, default: -> { {} }