Merge branch '20203-rails-cache'
[arvados.git] / services / api / db / migrate / 20190422144631_fill_missing_modified_at.rb
1 # Copyright (C) The Arvados Authors. All rights reserved.
2 #
3 # SPDX-License-Identifier: AGPL-3.0
4
5 class FillMissingModifiedAt < ActiveRecord::Migration[5.0]
6   def up
7     Collection.where('modified_at is null').update_all('modified_at = created_at')
8   end
9   def down
10   end
11 end