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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-07-28 01:40:43 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-07-28 01:40:43 +0300
commitbbe511b231b5de3fab4dc418601c89cc1ccc8063 (patch)
tree650453c3b64751df39fda6f33ca4b39318f41e0d /db/migrate
parentad1c34c03de42ebc5279f338f6304e77930d34d4 (diff)
Add latest changes from gitlab-org/gitlab@14-1-stable-ee
Diffstat (limited to 'db/migrate')
-rw-r--r--db/migrate/20210720083432_change_application_setting_terms_not_null.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/db/migrate/20210720083432_change_application_setting_terms_not_null.rb b/db/migrate/20210720083432_change_application_setting_terms_not_null.rb
new file mode 100644
index 00000000000..76dbbe68967
--- /dev/null
+++ b/db/migrate/20210720083432_change_application_setting_terms_not_null.rb
@@ -0,0 +1,12 @@
+# frozen_string_literal: true
+
+class ChangeApplicationSettingTermsNotNull < ActiveRecord::Migration[6.1]
+ def up
+ execute("UPDATE application_setting_terms SET terms = '' WHERE terms IS NULL")
+ change_column_null :application_setting_terms, :terms, false
+ end
+
+ def down
+ change_column_null :application_setting_terms, :terms, true
+ end
+end