fix sqlite remove template

This commit is contained in:
Pete Matsyburka
2025-06-30 11:44:55 +03:00
parent 10e4476f4a
commit d0ac4ad222
3 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -43,7 +43,7 @@ class Submitter < ApplicationRecord
belongs_to :submission
belongs_to :account
has_one :template, through: :submission
has_one :search_entry, as: :record, inverse_of: :record, dependent: :destroy
has_one :search_entry, as: :record, inverse_of: :record, dependent: :destroy if SearchEntry.table_exists?
attribute :values, :string, default: -> { {} }
attribute :preferences, :string, default: -> { {} }