summaryrefslogtreecommitdiff
path: root/db/ci/migrate/20150330001111_disable_shared_runners.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/ci/migrate/20150330001111_disable_shared_runners.rb')
-rw-r--r--db/ci/migrate/20150330001111_disable_shared_runners.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/db/ci/migrate/20150330001111_disable_shared_runners.rb b/db/ci/migrate/20150330001111_disable_shared_runners.rb
new file mode 100644
index 00000000000..dbb32baa27a
--- /dev/null
+++ b/db/ci/migrate/20150330001111_disable_shared_runners.rb
@@ -0,0 +1,8 @@
+class DisableSharedRunners < ActiveRecord::Migration
+ def up
+ execute("UPDATE projects SET shared_runners_enabled = false WHERE id IN (SELECT project_id FROM runner_projects)");
+ end
+
+ def down
+ end
+end