开发者

How do i create the rails 3.1 application using mysql

开发者 https://www.devze.com 2023-03-06 22:39 出处:网络
How to create a rails 3.1 application using mysql. The following command used to create the project with sqlite database.

How to create a rails 3.1 application using mysql. The following command used to create the project with sqlite database.

rails new d开发者_JAVA技巧epot

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
0

精彩评论

暂无评论...
验证码 换一张
取 消