aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcedricnjanga2017-10-03 15:07:41 +0200
committercedricnjanga2017-10-03 15:09:20 +0200
commit4c0c9d69fed94da43e19d83e7f9dc93e738b6907 (patch)
tree2b2056c2bd7f68703197e4e59f9af282a92a432f
parent014c5bdceb91ab876d10939c308611748ee0ee9c (diff)
downloadchouette-core-4c0c9d69fed94da43e19d83e7f9dc93e738b6907.tar.bz2
Add attributes to compliance check set Refs #4661
-rw-r--r--db/migrate/20171003130549_add_attributes_to_compliance_check_set.rb10
-rw-r--r--db/schema.rb8
2 files changed, 17 insertions, 1 deletions
diff --git a/db/migrate/20171003130549_add_attributes_to_compliance_check_set.rb b/db/migrate/20171003130549_add_attributes_to_compliance_check_set.rb
new file mode 100644
index 000000000..59a5d91e4
--- /dev/null
+++ b/db/migrate/20171003130549_add_attributes_to_compliance_check_set.rb
@@ -0,0 +1,10 @@
+class AddAttributesToComplianceCheckSet < ActiveRecord::Migration
+ def change
+ add_column :compliance_check_sets, :current_step_id, :string
+ add_column :compliance_check_sets, :string, :string
+ add_column :compliance_check_sets, :current_step_progress, :float
+ add_column :compliance_check_sets, :name, :string
+ add_column :compliance_check_sets, :started_at, :datetime
+ add_column :compliance_check_sets, :ended_at, :datetime
+ end
+end
diff --git a/db/schema.rb b/db/schema.rb
index 608a611a3..db0687c1f 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: 20171003123007) do
+ActiveRecord::Schema.define(version: 20171003130549) do
# These are extensions that must be enabled in order to support this database
enable_extension "plpgsql"
@@ -194,6 +194,12 @@ ActiveRecord::Schema.define(version: 20171003123007) do
t.string "parent_type"
t.datetime "created_at", null: false
t.datetime "updated_at", null: false
+ t.string "current_step_id"
+ t.string "string"
+ t.float "current_step_progress"
+ t.string "name"
+ t.datetime "started_at"
+ t.datetime "ended_at"
end
add_index "compliance_check_sets", ["compliance_control_set_id"], name: "index_compliance_check_sets_on_compliance_control_set_id", using: :btree