[17] pry(main)> puts Post.all.select(1).to_sql
SELECT 1 FROM "posts"
=> nil
[18] pry(main)> puts Post.all.select(1).limit(1).to_sql
SELECT 1 FROM "posts" LIMIT 1
Why put two space after SELECT
?
Solution: rails/rails#33977
[17] pry(main)> puts Post.all.select(1).to_sql
SELECT 1 FROM "posts"
=> nil
[18] pry(main)> puts Post.all.select(1).limit(1).to_sql
SELECT 1 FROM "posts" LIMIT 1
Why put two space after SELECT
?
Solution: rails/rails#33977