blob: 3c62221f0397c0aedd71329b8187ede5c7acd9a0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
class ComplianceCheckSet < ActiveRecord::Base
extend Enumerize
belongs_to :referential
belongs_to :compliance_control_set
belongs_to :workbench
belongs_to :parent, polymorphic: true
enumerize :status, in: %w[new pending successful warning failed running aborted canceled]
scope :where_created_at_between, ->(start_date, end_date) do
where('created_at BETWEEN ? AND ?', start_date, end_date)
end
end
|