문제

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

도움이 되었습니까?

해결책

Have you tried using

rake db:create:all

and then

rake db:test:prepare
라이센스 : CC-BY-SA ~와 함께 속성
제휴하지 않습니다 StackOverflow
scroll top