我输入然后rake db:migrate
,但CMD表明耙中止无法打开数据库你可以参考这本书的chap2的 [Ruby on Rails的] 奥赖利深入浅出Rails的扬学习者的伴侣到Ruby on Rails 2009无法打开数据库
# SQLite version 3.x
# gem install sqlite3-ruby (not necessary on OS X Leopard)
development: adapter: sqlite3 database: db/development.sqlite3 timeout: 5000
# Warning: The database defined as 'test' will be erased and # re-generated from your development database when you run 'rake'.
# Do not set this db to the same as development or production.
test: adapter: sqlite3 database: db/test.sqlite3 timeout: 5000
production: adapter: sqlite3 database: db/production.sqlite3 timeout: 5000
#的SQLite 3.x版#创业板安装的sqlite3 - 红宝石(在OS X Leopard的不是必要的)发展运行前
rake db:create:all
:适配器:sqlite3的数据库:DB /development.sqlite3 timeout:5000#警告:当您运行'rake'时,定义为'test'的数据库将被删除,并且从开发数据库重新生成#。 #不要将此db设置为与开发或生产相同。测试:适配器:sqlite3数据库:db/test.sqlite3超时:5000生产:适配器:sqlite3数据库:db/production.sqlite3超时时间:5000年Matchu – tjw1135@ tjw1135,使用您的文章下的[编辑] - 试图通过评论阅读格式化文本是相当痛苦的。 – sarnold