summaryrefslogtreecommitdiff
path: root/db/migrate
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2017-08-21 17:24:44 +0900
committerShinya Maeda <shinya@gitlab.com>2017-09-03 23:49:10 +0900
commiteda34b1a1846a5d5b55cc127a32b0c7628580f25 (patch)
treef4400330322a6104e5f04356ac04e8eea56559cc /db/migrate
parente1ef436d1fd6419ce8a08c4ac33bf664786c80b0 (diff)
downloadgitlab-ce-eda34b1a1846a5d5b55cc127a32b0c7628580f25.tar.gz
Add spec. Fix runner setting page. It worked.
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20170816133938_add_access_level_to_ci_runners.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/db/migrate/20170816133938_add_access_level_to_ci_runners.rb b/db/migrate/20170816133938_add_access_level_to_ci_runners.rb
index 58317d46eac..cb8d023e439 100644
--- a/db/migrate/20170816133938_add_access_level_to_ci_runners.rb
+++ b/db/migrate/20170816133938_add_access_level_to_ci_runners.rb
@@ -6,8 +6,8 @@ class AddAccessLevelToCiRunners < ActiveRecord::Migration
disable_ddl_transaction!
def up
- # Ci::Runner.unprotected: 0
- add_column_with_default(:ci_runners, :access_level, :integer, default: 0)
+ add_column_with_default(:ci_runners, :access_level, :integer,
+ default: Ci::Runner.access_levels['unprotected'])
end
def down