Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
limit column by hirb
> extend Hirb::Console
=> main
> table User.last(10), fields: [:id, :name]
User Load (1.5ms) SELECT `users`.* FROM `users` ORDER BY `users`.`id` DESC LIMIT 10
+----+----------------+
| id | name |
+----+----------------+
| 63 | chany0u |
| 64 | ae06710 |
| 65 | ps_lain_bot |
| 66 | harada4atsushi |
| 67 | masatrora |
| 68 | masamirock |
| 69 | daisuke_3 |
| 70 | takuya_v_v |
| 71 | pugiemonn |
| 72 | Tarky |
+----+----------------+
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment