diff options
author | Valery Sizov <vsv2711@gmail.com> | 2015-03-31 15:04:03 +0300 |
---|---|---|
committer | Valery Sizov <vsv2711@gmail.com> | 2015-03-31 19:37:25 +0300 |
commit | f37ba61d24823b22c70c40b38ed678503e35b7ff (patch) | |
tree | c60e0eaa6b602333c51443ae6e7fb4ef7e1bcf3d | |
parent | 8e29dee98e3ac0fa5c69708f78429a0d758a92cb (diff) | |
download | gitlab-ci-f37ba61d24823b22c70c40b38ed678503e35b7ff.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 a0b007c..43982ee 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" |