gitlab-org--gitlab-foss/db/migrate/20220808133824_add_timestamps_to_project_statistics.rb

7 lines
220 B
Ruby

# frozen_string_literal: true
class AddTimestampsToProjectStatistics < Gitlab::Database::Migration[2.0]
def change
add_timestamps_with_timezone(:project_statistics, null: false, default: -> { 'NOW()' })
end
end