blob: 4dafd48c747c8d99d144c2a104b6e15fb8356cef (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
class ComplianceControlSet < ActiveRecord::Base
belongs_to :organisation
has_many :compliance_controls
validates :name, presence: true
scope :where_updated_at_between, ->(start_date, end_date) do
where('updated_at BETWEEN ? AND ?', start_date, end_date)
end
end
|