summaryrefslogtreecommitdiff
path: root/db/migrate/20211115145107_add_created_at_to_namespace_monthly_usages.rb
blob: e0e2bec72ad6925f8dc65c497960765b0e08edb1 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
# frozen_string_literal: true

class AddCreatedAtToNamespaceMonthlyUsages < Gitlab::Database::Migration[1.0]
  disable_ddl_transaction!

  def up
    with_lock_retries do
      add_column :ci_namespace_monthly_usages, :created_at, :datetime_with_timezone
    end
  end

  def down
    with_lock_retries do
      remove_column :ci_namespace_monthly_usages, :created_at
    end
  end
end