diff options
Diffstat (limited to 'app/models/clusters/agent_token.rb')
-rw-r--r-- | app/models/clusters/agent_token.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/app/models/clusters/agent_token.rb b/app/models/clusters/agent_token.rb index e2dcff13a69..b2b13f6cef7 100644 --- a/app/models/clusters/agent_token.rb +++ b/app/models/clusters/agent_token.rb @@ -20,6 +20,7 @@ module Clusters scope :order_last_used_at_desc, -> { order(arel_table[:last_used_at].desc.nulls_last) } scope :with_status, -> (status) { where(status: status) } + scope :active, -> { where(status: :active) } enum status: { active: 0, |