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

20220909094752_add_free_user_cap_over_limt_notified_at_to_namespace_details.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 775705eae739db7df17aa4e160464d0341f8e17e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
# frozen_string_literal: true

class AddFreeUserCapOverLimtNotifiedAtToNamespaceDetails < Gitlab::Database::Migration[2.0]
  disable_ddl_transaction!

  TABLE_NAME = 'namespace_details'
  COLUMN_NAME = 'free_user_cap_over_limt_notified_at'

  def up
    with_lock_retries do
      add_column(TABLE_NAME, COLUMN_NAME, :datetime_with_timezone)
    end
  end

  def down
    with_lock_retries do
      remove_column TABLE_NAME, COLUMN_NAME
    end
  end
end