use select_values

This commit is contained in:
James Lopez 2017-05-05 10:51:25 +02:00
parent adcff298f8
commit 9ec39568c5
1 changed files with 2 additions and 2 deletions

View File

@ -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