Wednesday, February 20, 2008

Rails 2.0 tip: Create a new application with MySQL support

In rails < 2.0, when I create a rails new application by the rails command, the configuration of database.yml supports MySQL by default. While in rails 2.0, it will generate default configuration database.yml for Sqlite3. To make it default as MySQL, run with -d mysql.
rails -d mysql your_application_name

1 comment:

Unknown said...

thanks! very helpfull and directly