mirror of
https://gitlab.com/gitlab-org/gitlab-foss.git
synced 2025-07-21 23:43:41 +00:00
14 lines
329 B
Ruby
14 lines
329 B
Ruby
# frozen_string_literal: true
|
|
|
|
class AddTimestampCiDeletedObjects < Gitlab::Database::Migration[2.2]
|
|
milestone '17.10'
|
|
|
|
def up
|
|
add_timestamps_with_timezone(:ci_deleted_objects, columns: [:created_at], default: -> { 'NOW()' })
|
|
end
|
|
|
|
def down
|
|
remove_timestamps(:ci_deleted_objects, columns: [:created_at])
|
|
end
|
|
end
|