Can't prepare test database

Hi,

I got a production server where I’d like to run “rake test” - to check
for file permissions etc. - all tests pass on my local machine.

On the production server I got production db and empty development and
test db. How to create schema.rb file and prepare test db? I tried
various rake tasks, but the schema definition in schema.rb file is
empty and despite the fact that rake tasks (i.e. db:test:prepare and
db:schema:dump) do not return any errors, I can’t create test db
structure and run tests.

Thanks in advance for any tips

szimek wrote:

structure and run tests.

Thanks in advance for any tips

Try this…

rake RAILS_ENV=development db:migrate
rake db:test:prepare

http://www.5valleys.com/

http://www.workingwithrails.com/person/8078

On 18 Kwi, 01:02, Jon G. [email protected] wrote:

db:schema:dump) do not return any errors, I can’t create test db

http://www.5valleys.com/

http://www.workingwithrails.com/person/8078

Thanks!

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs