debian-mirror-gitlab/db/migrate/20190808152507_add_projects_sorting_field_to_user_preferences.rb
2020-05-24 23:13:21 +05:30

16 lines
376 B
Ruby

# frozen_string_literal: true
class AddProjectsSortingFieldToUserPreferences < ActiveRecord::Migration[5.2]
DOWNTIME = false
# rubocop:disable Migration/PreventStrings
def up
add_column :user_preferences, :projects_sort, :string, limit: 64
end
# rubocop:enable Migration/PreventStrings
def down
remove_column :user_preferences, :projects_sort
end
end