On May 17, 3:13 pm, Stephan Wehner <[email protected]>
wrote:
> Hello everybody,
>
> I wrote a script to open a database prompt based on the contents of
> database.yml
>
> See the rdb_prompt directory under
>
>  http://github.com/stephanwehner/railsgoodies
>
> I find it very useful, since I work with several different branches of
> Rails projects, each possibly having different migrations which are
> applied to different (mysql) databases.
>
> Opening a (mysql) prompt would require looking up the name of the
> database, and more -- which a script can do faster than me.
>

Don't want to piss on anyone's parade but Rails comes with a script
that does that eg

ruby script/dbconsole production

Fred

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups "Ruby 
on Rails: Talk" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to 
[email protected]
For more options, visit this group at 
http://groups.google.com/group/rubyonrails-talk?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to