문제

I am a newbie to rails/ruby. i have two databases, sqlite for development/testing and postgres for production/deployment. when i run "bundle exec rake db:migrate", which database is updated with my current data model, the sqlite or the postgres? the command output doesn't say much about the database it interacts with. ugh. when i push up the code to heroku it doesn't work, so i'm assuming the database that is updated is sqlite. any thoughts?

도움이 되었습니까?

해결책

The database that is configured under your default environment (typically development).

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