rails -d mysql your_application_name
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.
Subscribe to:
Post Comments (Atom)
1 comment:
thanks! very helpfull and directly
Post a Comment