Is there a way to run a specific command when starting the rails console? I would like it to print whether I am connected to a remote or local database in BIG LETTERS! I do not mind writing my own method to determine this - I am just asking how to write to the console. I saw errors and warnings there.
For example: rails c prints Loading development environment (Rails 3.2.11) **USING REMOTE DATABASE** 1.9.3p125 :001 >
ruby ruby-on-rails
Brian weinreich
source share