18943: add modified_at descending index
[arvados.git] / services / api / db / migrate / 20200602141328_fix_roles_projects.rb
index f9b2bd6faf2e0e8ec4041632911e899d96116cf6..e17ef6de53e8f804ed711af4dd88d576ad30a3b9 100644 (file)
@@ -5,9 +5,13 @@
 require 'fix_roles_projects'
 
 class FixRolesProjects < ActiveRecord::Migration[5.0]
-  def change
+  def up
+    # defined in a function for easy testing.
+    fix_roles_projects
+  end
+
+  def down
     # This migration is not reversible.  However, the results are
     # backwards compatible.
-    fix_roles_projects
   end
 end