aboutsummaryrefslogtreecommitdiffstats
path: root/app
diff options
context:
space:
mode:
authorXinhui2017-09-05 15:20:12 +0200
committerXinhui2017-09-05 15:20:12 +0200
commit92703917b31cbaf7f4e5e1bafd009eee2d26c6a1 (patch)
treed4b42934b90ab6d6ad3467082d405d79a2319e99 /app
parent37947deb6082d12ecfbce3bd7cbf18bc98762d41 (diff)
downloadchouette-core-92703917b31cbaf7f4e5e1bafd009eee2d26c6a1.tar.bz2
Model ComplianceCheckSet
Refs #4386
Diffstat (limited to 'app')
-rw-r--r--app/models/compliance_check_set.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/app/models/compliance_check_set.rb b/app/models/compliance_check_set.rb
new file mode 100644
index 000000000..7b6400a21
--- /dev/null
+++ b/app/models/compliance_check_set.rb
@@ -0,0 +1,10 @@
+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]
+end