blob: 55f2ae228215ef41a1926f4354c0af85f8d69ece (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
|
class ComplianceCheck < ActiveRecord::Base
self.inheritance_column = nil
extend Enumerize
belongs_to :compliance_check_set
belongs_to :compliance_check_block
enumerize :criticity, in: %i(warning error), scope: true, default: :warning
validates :criticity, presence: true
validates :name, presence: true
validates :code, presence: true
validates :origin_code, presence: true
end
|