diff options
Diffstat (limited to 'db/ci/migrate/20150806091655_update_committed_at_with_created_at.rb')
-rw-r--r-- | db/ci/migrate/20150806091655_update_committed_at_with_created_at.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/db/ci/migrate/20150806091655_update_committed_at_with_created_at.rb b/db/ci/migrate/20150806091655_update_committed_at_with_created_at.rb new file mode 100644 index 00000000000..a2646c3dd74 --- /dev/null +++ b/db/ci/migrate/20150806091655_update_committed_at_with_created_at.rb @@ -0,0 +1,5 @@ +class UpdateCommittedAtWithCreatedAt < ActiveRecord::Migration + def up + execute('UPDATE commits SET committed_at=created_at WHERE committed_at IS NULL') + end +end |