Welcome to mirror list, hosted at ThFree Co, Russian Federation.

20211213130324_update_timelogs_spent_at_default.rb « migrate « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: f90b19b5f68983707014baa65f0ad20eefe9fb11 (plain)
1
2
3
4
5
6
7
# 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