Reputation: 3615
As topic says, if I do a rake db:test:prepare
or rake db:test:clone
no test.sqlite3 gets created. Also did a db:migrate
before
Terminal dont give any output.
Thats my 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
Any Ideas or suggestions?
Upvotes: 0
Views: 4842
Reputation: 3615
Ah me is stupid...
had to give the rails.env, due to my database.yml with the command
RAILS_ENV=test rake db:test:prepare
Upvotes: 5