开发者

How do i create the rails 3.1 application using mysql

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜