mirror of
https://github.com/docusealco/docuseal
synced 2026-11-14 23:52:34 -05:00
optimize select
This commit is contained in:
1 parent
e54d76f0e2
commit
3cb37748e9
11 files changed
+60
-18
No files matched your search
@@ -107,6 +107,11 @@ class Submission < ApplicationRecord
|
||||
.and(Submitter.arel_table[:completed_at].eq(nil))).select(1).arel.exists)
|
||||
}
|
||||
|
||||
scope :select_for_list, lambda {
|
||||
select(:id, :name, :created_by_user_id, :account_id,
|
||||
:created_at, :archived_at, :expire_at, :template_id, :template_submitters)
|
||||
}
|
||||
|
||||
enum :source, {
|
||||
invite: 'invite',
|
||||
bulk: 'bulk',
|
||||
|
||||
Reference in new issue
Block a user