aboutsummaryrefslogtreecommitdiffstats
path: root/db/migrate
diff options
context:
space:
mode:
authorXinhui2017-09-06 10:59:44 +0200
committerXinhui2017-09-06 10:59:44 +0200
commit64e68de279967fc352f96e414ddb04bd32aa8a74 (patch)
treef3e2240cddf750196dcb55f8bf0f2ca599130f7b /db/migrate
parent26affe0da7bb7987e54c862e40acd4db8641d162 (diff)
downloadchouette-core-64e68de279967fc352f96e414ddb04bd32aa8a74.tar.bz2
Model ComplianceCheck
Refs #4388
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170906084628_create_compliance_checks.rb16
1 files changed, 16 insertions, 0 deletions
diff --git a/db/migrate/20170906084628_create_compliance_checks.rb b/db/migrate/20170906084628_create_compliance_checks.rb
new file mode 100644
index 000000000..1d6bdaaf2
--- /dev/null
+++ b/db/migrate/20170906084628_create_compliance_checks.rb
@@ -0,0 +1,16 @@
+class CreateComplianceChecks < ActiveRecord::Migration
+ def change
+ create_table :compliance_checks do |t|
+ t.references :compliance_check_set, index: true, foreign_key: true
+ t.references :compliance_check_block, index: true, foreign_key: true
+ t.string :type
+ t.json :control_attributes
+ t.string :name
+ t.string :code
+ t.integer :criticity
+ t.text :comment
+
+ t.timestamps null: false
+ end
+ end
+end