diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-31 15:04:03 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-31 15:13:27 +0300 |
commit | 9437042282b098b25982e8bff6a3d4d156b9a28f (patch) | |
tree | 9860280ab15db0f5d77b0e3fdd0fd73eb573ff7a | |
parent | 9e8e51d21e14b065491062eea3244cd755bff5f8 (diff) | |
download | gitlab-ci-9437042282b098b25982e8bff6a3d4d156b9a28f.tar.gz |
Disable running on shared runners
-rw-r--r-- | CHANGELOG | 3 | ||||
-rw-r--r-- | db/migrate/20150330001111_disable_shared_runners.rb | 8 | ||||
-rw-r--r-- | db/schema.rb | 2 |
3 files changed, 12 insertions, 1 deletions
@@ -2,6 +2,9 @@ v7.10.0 - Projects sorting by last commit date - Add project search at runner page +v7.9.2 + - [Security] Already existing projects should not be served by shared runners + v7.9.1 - [Security] Adding explicit is_shared parameter to runner - [Security] By default new projects are not served by shared runners diff --git a/db/migrate/20150330001111_disable_shared_runners.rb b/db/migrate/20150330001111_disable_shared_runners.rb new file mode 100644 index 0000000..dbb32ba --- /dev/null +++ b/db/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 diff --git a/db/schema.rb b/db/schema.rb index f066143..e194f7a 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: 20150324001227) do +ActiveRecord::Schema.define(version: 20150330001111) do # These are extensions that must be enabled in order to support this database enable_extension "plpgsql" |