Merge branch '21535-multi-wf-delete'
[arvados.git] / services / api / lib / tasks / manage_long_lived_tokens.rake
index 7a665ff7e77d81eee221534a547591d5750ac1b6..70a0f242848a9c6a143f3120b520cb534e90bb0c 100644 (file)
@@ -31,7 +31,7 @@ namespace :db do
       end
       if (auth.user.uuid =~ /-tpzed-000000000000000/).nil? and (auth.user.uuid =~ /-tpzed-anonymouspublic/).nil?
         CurrentApiClientHelper.act_as_system_user do
-          auth.update_attributes!(expires_at: exp_date)
+          auth.update!(expires_at: exp_date)
         end
         token_count += 1
       end