debian-mirror-gitlab/db/migrate/20190808152507_add_projects_sorting_field_to_user_preferences.rb

16 lines
376 B
Ruby
Raw Normal View History

2019-12-04 20:38:33 +05:30
# frozen_string_literal: true
class AddProjectsSortingFieldToUserPreferences < ActiveRecord::Migration[5.2]
DOWNTIME = false
2020-05-24 23:13:21 +05:30
# rubocop:disable Migration/PreventStrings
2019-12-04 20:38:33 +05:30
def up
add_column :user_preferences, :projects_sort, :string, limit: 64
end
2020-05-24 23:13:21 +05:30
# rubocop:enable Migration/PreventStrings
2019-12-04 20:38:33 +05:30
def down
remove_column :user_preferences, :projects_sort
end
end