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

20150806091655_update_committed_at_with_created_at.rb « migrate « ci « db - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a2646c3dd74ce09f2eb54957185c8e2c9164a595 (plain)
1
2
3
4
5
class UpdateCommittedAtWithCreatedAt < ActiveRecord::Migration
  def up
    execute('UPDATE commits SET committed_at=created_at WHERE committed_at IS NULL')
  end
end