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

use select_values

parent adcff298
...@@ -41,7 +41,7 @@ module Projects ...@@ -41,7 +41,7 @@ module Projects
end end
def project_ids_batch def project_ids_batch
Project.connection.execute( Project.connection.select_values(
<<-SQL <<-SQL
SELECT id SELECT id
FROM projects FROM projects
...@@ -53,7 +53,7 @@ module Projects ...@@ -53,7 +53,7 @@ module Projects
) )
LIMIT #{BATCH_SIZE} LIMIT #{BATCH_SIZE}
SQL SQL
).to_a.flatten )
end end
def service_hash 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