正如主题所说,如果我做一个rake db:test:prepare
或rake db:test:clone
没有创建 test.sqlite3 。db:migrate
之前也做过
终端不提供任何输出。
那是我的database.yml
sqlite: &sqlite
adapter: sqlite3
database: db/<%= Rails.env %>.sqlite3
mysql: &mysql
adapter: mysql2
username: root
password:
database: myapp_<%= Rails.env %>
postgresql: &postgresql
adapter: postgresql
username: postgres
password:
database: myapp_<%= Rails.env %>
min_messages: ERROR
defaults: &defaults
pool: 5
timeout: 5000
host: localhost
<<: *<%= ENV['DB'] || "sqlite" %>
development:
<<: *defaults
test:
<<: *defaults
production:
<<: *defaults
有什么想法或建议吗?