15 lines
376 B
Ruby
15 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
|