add group_runners_enabled to ci_runners

This commit is contained in:
Alexis Reigel 2017-09-25 16:32:24 +02:00 committed by Alexis Reigel
parent d0842d2075
commit 677291b6a7
No known key found for this signature in database
GPG Key ID: 55ADA7C7B683B329
2 changed files with 18 additions and 0 deletions

View File

@ -0,0 +1,16 @@
class AddGroupRunnersEnabledToProjects < ActiveRecord::Migration
include Gitlab::Database::MigrationHelpers
DOWNTIME = false
disable_ddl_transaction!
def up
add_column_with_default :projects, :group_runners_enabled, :boolean, default: true
add_concurrent_index :projects, :group_runners_enabled
end
def down
remove_column :projects, :group_runners_enabled
end
end

View File

@ -1568,12 +1568,14 @@ ActiveRecord::Schema.define(version: 20180418053107) do
t.boolean "merge_requests_rebase_enabled", default: false, null: false
t.integer "jobs_cache_index"
t.boolean "pages_https_only", default: true
t.boolean "group_runners_enabled", default: true, null: false
end
add_index "projects", ["ci_id"], name: "index_projects_on_ci_id", using: :btree
add_index "projects", ["created_at"], name: "index_projects_on_created_at", using: :btree
add_index "projects", ["creator_id"], name: "index_projects_on_creator_id", using: :btree
add_index "projects", ["description"], name: "index_projects_on_description_trigram", using: :gin, opclasses: {"description"=>"gin_trgm_ops"}
add_index "projects", ["group_runners_enabled"], name: "index_projects_on_group_runners_enabled", using: :btree
add_index "projects", ["id"], name: "index_projects_on_id_partial_for_visibility", unique: true, where: "(visibility_level = ANY (ARRAY[10, 20]))", using: :btree
add_index "projects", ["last_activity_at"], name: "index_projects_on_last_activity_at", using: :btree
add_index "projects", ["last_repository_check_failed"], name: "index_projects_on_last_repository_check_failed", using: :btree