debian-mirror-gitlab/db/migrate/20190808152507_add_projects_sorting_field_to_user_preferences.rb
2019-12-04 20:38:33 +05:30

14 lines
287 B
Ruby

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