Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20150324001227_migrate_shared_runners.rb « migrate « ci « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 1d86aa7368c3990d8d1991cedce4644b94847304 (plain)
1
2
3
4
5
6
7
8
9
10
11
class MigrateSharedRunners < ActiveRecord::Migration
  def up
    #all shared runners should remain to be shared
    execute("UPDATE runners SET is_shared = true WHERE id NOT IN (SELECT runner_id FROM runner_projects)");

    Project.update_all(shared_runners_enabled: true)
  end

  def down
  end
end