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
|