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:
authorMatija Čupić <matteeyah@gmail.com>2019-06-06 21:49:04 +0300
committerMatija Čupić <matteeyah@gmail.com>2019-06-17 22:53:09 +0300
commit7ac3723be04ba08cb476ba628cb5c1573ca832c9 (patch)
treea7fe9269e339e4ddd46b196e31a6774ae2675df7 /db/migrate/20190527011309_add_required_template_name_to_application_settings.rb
parent68a1ba6a296f340fcddf58e5fbd26d51d66bd90b (diff)
Backport CE changes
Backports CE changes from https://gitlab.com/gitlab-org/gitlab-ee/merge_requests/14011/
Diffstat (limited to 'db/migrate/20190527011309_add_required_template_name_to_application_settings.rb')
-rw-r--r--db/migrate/20190527011309_add_required_template_name_to_application_settings.rb15
1 files changed, 15 insertions, 0 deletions
diff --git a/db/migrate/20190527011309_add_required_template_name_to_application_settings.rb b/db/migrate/20190527011309_add_required_template_name_to_application_settings.rb
new file mode 100644
index 00000000000..6cbac0ed507
--- /dev/null
+++ b/db/migrate/20190527011309_add_required_template_name_to_application_settings.rb
@@ -0,0 +1,15 @@
+# frozen_string_literal: true
+
+# See http://doc.gitlab.com/ce/development/migration_style_guide.html
+# for more information on how to write migrations for GitLab.
+
+class AddRequiredTemplateNameToApplicationSettings < ActiveRecord::Migration[5.1]
+ include Gitlab::Database::MigrationHelpers
+
+ # Set this constant to true if this migration requires downtime.
+ DOWNTIME = false
+
+ def change
+ add_column :application_settings, :required_instance_ci_template, :string, null: true
+ end
+end