How to create a rails 3.1 application using mysql. The following command used to create the project with sqlite database.
rails new depot
I'd like to use mysql then sqlite. So can anyone tell me how to create a project with mysql.
Thanks
See help for rails new command
rails new --help
-d, [--database=DATABASE]
Preconfigure for selected database (options: mysql/oracle/postgresql/sqlite3/frontbase/ibm_db) # Default: sqlite3
You should use:
rails new depot -d mysql
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With