diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-27 22:40:43 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2021-07-27 22:40:43 +0000 |
commit | bbe511b231b5de3fab4dc418601c89cc1ccc8063 (patch) | |
tree | 650453c3b64751df39fda6f33ca4b39318f41e0d /db/migrate | |
parent | ad1c34c03de42ebc5279f338f6304e77930d34d4 (diff) | |
download | gitlab-ce-bbe511b231b5de3fab4dc418601c89cc1ccc8063.tar.gz |
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.rb | 12 |
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 |