Commit 9ec39568 authored by James Lopez's avatar James Lopez

use select_values

parent adcff298
......@@ -41,7 +41,7 @@ module Projects
end
def project_ids_batch
Project.connection.execute(
Project.connection.select_values(
<<-SQL
SELECT id
FROM projects
......@@ -53,7 +53,7 @@ module Projects
)
LIMIT #{BATCH_SIZE}
SQL
).to_a.flatten
)
end
def service_hash
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment