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

20230518121320_remove_time_format_in_24h_column.rb « post_migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 489c2446fe27822330fe1b1c993253257c1580ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

class RemoveTimeFormatIn24hColumn < Gitlab::Database::Migration[2.1]
  enable_lock_retries!

  def up
    remove_column :user_preferences, :time_format_in_24h
  end

  def down
    add_column :user_preferences, :time_format_in_24h, :boolean
  end
end