aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorRobert2017-10-10 22:31:59 +0200
committerRobert2017-10-12 17:49:51 +0200
commit8963eb80e71fb1932250f123367f6830b27fb025 (patch)
tree77d80f5d8224c45d3f599bd56ac29f6eab5c3eb4 /db
parent60c26e2e636ad43ab63208886fdc8c72bdca49c7 (diff)
downloadchouette-core-8963eb80e71fb1932250f123367f6830b27fb025.tar.bz2
Refs: #4709@0.75h;
DONE: - Copied all node atts for ComplianceChecks - Migration of CompliancCheck#criticity int -> string TODO: - Check what to do with attribute ComplianceCheck#type
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20171010202716_change_criticity_in_compliance_check_to_string.rb5
-rw-r--r--db/schema.rb4
2 files changed, 7 insertions, 2 deletions
diff --git a/db/migrate/20171010202716_change_criticity_in_compliance_check_to_string.rb b/db/migrate/20171010202716_change_criticity_in_compliance_check_to_string.rb
new file mode 100644
index 000000000..684c37a06
--- /dev/null
+++ b/db/migrate/20171010202716_change_criticity_in_compliance_check_to_string.rb
@@ -0,0 +1,5 @@
+class ChangeCriticityInComplianceCheckToString < ActiveRecord::Migration
+ def change
+ change_column :compliance_checks, :criticity, :string
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 7f02a342d..583851ffc 100644
--- a/db/schema.rb
+++ b/db/schema.rb
@@ -11,7 +11,7 @@
#
# It's strongly recommended that you check this file into your version control system.
-ActiveRecord::Schema.define(version: 20171003133042) do
+ActiveRecord::Schema.define(version: 20171010202716) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -213,7 +213,7 @@ ActiveRecord::Schema.define(version: 20171003133042) do
t.hstore "control_attributes"
t.string "name"
t.string "code"
- t.integer "criticity"
+ t.string "criticity"
t.text "comment"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false