summaryrefslogtreecommitdiff
path: root/db/migrate/20211115154103_add_created_at_to_project_monthly_usage.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20211115154103_add_created_at_to_project_monthly_usage.rb')
-rw-r--r--db/migrate/20211115154103_add_created_at_to_project_monthly_usage.rb17
1 files changed, 17 insertions, 0 deletions
diff --git a/db/migrate/20211115154103_add_created_at_to_project_monthly_usage.rb b/db/migrate/20211115154103_add_created_at_to_project_monthly_usage.rb
new file mode 100644
index 00000000000..eb0cd448da3
--- /dev/null
+++ b/db/migrate/20211115154103_add_created_at_to_project_monthly_usage.rb
@@ -0,0 +1,17 @@
+# frozen_string_literal: true
+
+class AddCreatedAtToProjectMonthlyUsage < Gitlab::Database::Migration[1.0]
+ disable_ddl_transaction!
+
+ def up
+ with_lock_retries do
+ add_column :ci_project_monthly_usages, :created_at, :datetime_with_timezone
+ end
+ end
+
+ def down
+ with_lock_retries do
+ remove_column :ci_project_monthly_usages, :created_at
+ end
+ end
+end