When working with a Rails console to run some scripts on a database or similar, the default output of all the database queries and command results can be quite a lot and can slow down the processing considerably. Not to mention that it also can severely limit the readability of what your script outputs … .
Here is a solution, at least almost complete:
- Disable Rails 3.1 SQL logging (temporarily at least)
- Make the irb return value output to be always “nil”.
Leave a Reply