aboutsummaryrefslogtreecommitdiffstats
path: root/db
diff options
context:
space:
mode:
authorZog2018-05-07 15:25:50 +0200
committerZog2018-05-07 15:25:50 +0200
commitfb4d1c66cb4c0cd83e183a13ca5f9ea44803631b (patch)
tree635d6315e5dbc734ad2ebd68b525358ba91e9a65 /db
parentfac03f56f2e84705cd30fc31d8007cc64f77d500 (diff)
downloadchouette-core-fb4d1c66cb4c0cd83e183a13ca5f9ea44803631b.tar.bz2
Refs #6960; Add owners to workgroups
And define policies
Diffstat (limited to 'db')
-rw-r--r--db/migrate/20180507130455_add_owner_to_workgroups.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20180507130455_add_owner_to_workgroups.rb b/db/migrate/20180507130455_add_owner_to_workgroups.rb
new file mode 100644
index 000000000..2ed601492
--- /dev/null
+++ b/db/migrate/20180507130455_add_owner_to_workgroups.rb
@@ -0,0 +1,7 @@
+class AddOwnerToWorkgroups < ActiveRecord::Migration
+ def change
+ add_column :workgroups, :owner_id, :bigint
+ add_column :workbenches, :owner_compliance_control_set_ids, :hstore
+ remove_column :workgroups, :import_compliance_control_set_ids
+ end
+end