diff options
| author | Xinhui | 2017-09-06 10:59:44 +0200 |
|---|---|---|
| committer | Xinhui | 2017-09-06 10:59:44 +0200 |
| commit | 64e68de279967fc352f96e414ddb04bd32aa8a74 (patch) | |
| tree | f3e2240cddf750196dcb55f8bf0f2ca599130f7b /db/migrate | |
| parent | 26affe0da7bb7987e54c862e40acd4db8641d162 (diff) | |
| download | chouette-core-64e68de279967fc352f96e414ddb04bd32aa8a74.tar.bz2 | |
Model ComplianceCheck
Refs #4388
Diffstat (limited to 'db/migrate')
| -rw-r--r-- | db/migrate/20170906084628_create_compliance_checks.rb | 16 |
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 |
