[ARVADOS] created: 1.3.1-4-ga2c3d1ffd

Git user git at public.curoverse.com
Mon Apr 22 15:01:20 UTC 2019


        at  a2c3d1ffd627974c8daa3bff300c0ad96f07d3a0 (commit)


commit a2c3d1ffd627974c8daa3bff300c0ad96f07d3a0
Author: Tom Clegg <tclegg at veritasgenetics.com>
Date:   Mon Apr 22 11:01:14 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..67ead9310
--- /dev/null
+++ b/services/api/db/migrate/20190422144631_fill_missing_modified_at.rb
@@ -0,0 +1,7 @@
+class FillMissingModifiedAt < ActiveRecord::Migration
+  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