How do you run raw SQL in the rails console?
See: https://github.com/discourse/mini_sql
EG:
DB.query('select * from users limit 1').first.username
6 Likes
How do you run raw SQL in the rails console?
See: https://github.com/discourse/mini_sql
EG:
DB.query('select * from users limit 1').first.username