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

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDylan Griffith <dyl.griffith@gmail.com>2018-05-08 18:17:06 +0300
committerDylan Griffith <dyl.griffith@gmail.com>2018-05-09 10:54:19 +0300
commit4c2cf90780632db93ac7a39513277f17f4bc3da8 (patch)
tree9e4be7f7ea27d065596c9766566c58a0a030efe5 /db/migrate/20180508135515_set_runner_type_not_null.rb
parent2de674483aa881461d7afc55ee0d2fd7d9685806 (diff)
Add DB constraint ci_runners.runner_type not null
Diffstat (limited to 'db/migrate/20180508135515_set_runner_type_not_null.rb')
-rw-r--r--db/migrate/20180508135515_set_runner_type_not_null.rb9
1 files changed, 9 insertions, 0 deletions
diff --git a/db/migrate/20180508135515_set_runner_type_not_null.rb b/db/migrate/20180508135515_set_runner_type_not_null.rb
new file mode 100644
index 00000000000..dd043ec7179
--- /dev/null
+++ b/db/migrate/20180508135515_set_runner_type_not_null.rb
@@ -0,0 +1,9 @@
+class SetRunnerTypeNotNull < ActiveRecord::Migration
+ include Gitlab::Database::MigrationHelpers
+
+ DOWNTIME = false
+
+ def change
+ change_column_null(:ci_runners, :runner_type, false)
+ end
+end