gitlab-org--gitlab-foss/db/migrate/20211213130324_update_timelogs_spent_at_default.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

8 lines
203 B
Ruby
Raw Normal View History

# frozen_string_literal: true
class UpdateTimelogsSpentAtDefault < Gitlab::Database::Migration[1.0]
def change
change_column_default(:timelogs, :spent_at, from: nil, to: -> { 'NOW()' })
end
end