Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20190808152507_add_projects_sorting_field_to_user_preferences.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 941fead655e170ec508377bd458220abfed43fa3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# 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