optimize select

This commit is contained in:
Pete Matsyburka committed 2026-06-28 11:21:04 +03:00
1 parent e54d76f0e2
commit 3cb37748e9
11 files changed
+60 -18

No files matched your search

+2
View File
@@ -81,6 +81,8 @@ class Template < ApplicationRecord
scope :active, -> { where(archived_at: nil) }
scope :archived, -> { where.not(archived_at: nil) }
scope :select_for_list, -> { select(:id, :name, :author_id, :account_id, :created_at, :archived_at, :folder_id) }
def application_key
external_id
end