diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-05-20 17:34:42 +0300 |
commit | 9f46488805e86b1bc341ea1620b866016c2ce5ed (patch) | |
tree | f9748c7e287041e37d6da49e0a29c9511dc34768 /db/migrate/20190116234221_add_sorting_fields_to_user_preference.rb | |
parent | dfc92d081ea0332d69c8aca2f0e745cb48ae5e6d (diff) |
Add latest changes from gitlab-org/gitlab@13-0-stable-ee
Diffstat (limited to 'db/migrate/20190116234221_add_sorting_fields_to_user_preference.rb')
-rw-r--r-- | db/migrate/20190116234221_add_sorting_fields_to_user_preference.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/db/migrate/20190116234221_add_sorting_fields_to_user_preference.rb b/db/migrate/20190116234221_add_sorting_fields_to_user_preference.rb index 39aab600546..5d33f6f4339 100644 --- a/db/migrate/20190116234221_add_sorting_fields_to_user_preference.rb +++ b/db/migrate/20190116234221_add_sorting_fields_to_user_preference.rb @@ -9,10 +9,12 @@ class AddSortingFieldsToUserPreference < ActiveRecord::Migration[5.0] # Set this constant to true if this migration requires downtime. DOWNTIME = false + # rubocop:disable Migration/PreventStrings def up - add_column :user_preferences, :issues_sort, :string # rubocop:disable Migration/AddLimitToStringColumns - add_column :user_preferences, :merge_requests_sort, :string # rubocop:disable Migration/AddLimitToStringColumns + add_column :user_preferences, :issues_sort, :string + add_column :user_preferences, :merge_requests_sort, :string end + # rubocop:enable Migration/PreventStrings def down remove_column :user_preferences, :issues_sort |