Search code examples
ruby-on-railsrubyrspecdbmigrate

Cannot seem to use development database


I updated my database.yml file to look like so:

test:
  adapter: postgresql
  encoding: unicode
  database: startpoint_test
  hostname: localhost
  pool: 5
  username: postgres
  password: password

development:
  adapter: postgresql
  encoding: unicode
  database: startpoint_dev
  pool: 5
  username: postgres
  password: password

And now it seems when I run my application, and sign up a new user the development database does not get a new user inserted into it ...

The tests all pass for signing up a new user


Solution

  • Have you tried using

    rake db:create:all
    

    and then

    rake db:test:prepare