Might be useful gem in development (and prod)
https://github.com/igorkasyanchuk/execute_sql gem which allows executing custom SQL queries directly in rails console or in any other parts of the app.
rails c
[1] pry(main)> execute_sql "select first_name, last_name from users"
....
Post a comment