summaryrefslogtreecommitdiff
path: root/db/migrate/20211105125813_add_read_at_to_dependency_proxy_blobs.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20211105125813_add_read_at_to_dependency_proxy_blobs.rb')
-rw-r--r--db/migrate/20211105125813_add_read_at_to_dependency_proxy_blobs.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/db/migrate/20211105125813_add_read_at_to_dependency_proxy_blobs.rb b/db/migrate/20211105125813_add_read_at_to_dependency_proxy_blobs.rb
new file mode 100644
index 00000000000..1808a541498
--- /dev/null
+++ b/db/migrate/20211105125813_add_read_at_to_dependency_proxy_blobs.rb
@@ -0,0 +1,7 @@
+# frozen_string_literal: true
+
+class AddReadAtToDependencyProxyBlobs < Gitlab::Database::Migration[1.0]
+ def change
+ add_column :dependency_proxy_blobs, :read_at, :datetime_with_timezone, null: false, default: -> { 'NOW()' }
+ end
+end