[ARVADOS] created: 1.3.0-777-g67fd0a85e
Git user
git at public.curoverse.com
Mon Apr 22 15:29:42 UTC 2019
at 67fd0a85ea38fd2c9c8ac2fc237ade47613d78e8 (commit)
commit 67fd0a85ea38fd2c9c8ac2fc237ade47613d78e8
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date: Mon Apr 22 11:29:31 2019 -0400
15112: Fill in missing modified_at values from before #14595.
Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tclegg at veritasgenetics.com>
diff --git a/services/api/db/migrate/20190422144631_fill_missing_modified_at.rb b/services/api/db/migrate/20190422144631_fill_missing_modified_at.rb
new file mode 100644
index 000000000..5075e484b
--- /dev/null
+++ b/services/api/db/migrate/20190422144631_fill_missing_modified_at.rb
@@ -0,0 +1,11 @@
+# Copyright (C) The Arvados Authors. All rights reserved.
+#
+# SPDX-License-Identifier: AGPL-3.0
+
+class FillMissingModifiedAt < ActiveRecord::Migration[5.0]
+ def up
+ Collection.where('modified_at is null').update_all('modified_at = created_at')
+ end
+ def down
+ end
+end
-----------------------------------------------------------------------
hooks/post-receive
--
More information about the arvados-commits
mailing list