20300: Update exec_query bind vars usage for Rails 7.
[arvados.git] / services / api / db / migrate / 20220726034131_write_via_all_users.rb
index 30e6463beb62c795485cded973c52501b14ee0ce..f1280597f9db71cc9504a065c923347bec173b7a 100644 (file)
@@ -14,11 +14,11 @@ class WriteViaAllUsers < ActiveRecord::Migration[5.2]
     ActiveRecord::Base.connection.exec_query(
       "update links set name=$1 where link_class=$2 and name=$3 and tail_uuid like $4 and head_uuid = $5",
       "migrate", [
-        [nil, to],
-        [nil, "permission"],
-        [nil, from],
-        [nil, "_____-tpzed-_______________"],
-        [nil, all_users_group_uuid],
+        to,
+        "permission",
+        from,
+        "_____-tpzed-_______________",
+        all_users_group_uuid,
       ])
   end
 end