Heroku command: Heroku Rake db:migrate fails?

Heroku doesn't support SQLite databases. You need to use PostgreSQL on production group :production, :staging do gem "pg" end group :development, :test do gem "sqlite3-ruby", "~> 1.3.0", :require => "sqlite3" end.

Heroku doesn't support SQLite databases. You need to use PostgreSQL on production. Group :production, :staging do gem "pg" end group :development, :test do gem "sqlite3-ruby", "~> 1.3.0", :require => "sqlite3" end.

– Per-Olof Hermansson Oct 10 '10 at 7:39 sorry, I realized that I should add them in the gemfile... Now it works! Thanks! – Per-Olof Hermansson Oct 10 '10 at 8:00 1 If this answer solved the problem, you can accept it.

;) – Simone Carletti Oct 10 '10 at 9:23 @Per-Olof Hermansson: on StackOverflow, when an answer solves your problem, it's important to click the green check mark next to it so that the person gets credit, and so that people know that this question has already been taken care of :) Thanks! – Matchu Oct 10 '10 at 12:53.

I'm not sure about the intricacies of the API, but the Heroku homepage shows them not using heroku db:migrate, but rather: heroku rake db:migrate Give that a go.

Sorry, that was a typo, should include rake of course – Per-Olof Hermansson Oct 10 '10 at 8:11 i. E a type here at StackOverflow, heroku rake db:migrate is what gave the error, but solution is to add gem "pg" in gemfile as the answer from Simon Carletti shows below. – Per-Olof Hermansson Oct 10 '10 at 8:16 heroku completely ignores your database.

Yml and uses postgresql. So you can put in source control and use sqlite3 locally. You do not need the "pg" gem at all, heroku provides it, so keep your Gemfile clean and remove it if not used.

– oma Oct 17 '10 at 14:58 @Ole: I'm not sure on that point. The Heroku docs show including the pg gem, and I'd really kinda prefer being explicit about that, anyway. Making it clear that I only want sqlite3 loaded in on development and that I only want pg on production is much better than depending on Heroku to make that happen magically.

– Matchu Oct 17 '10 at 16:42 I know for a fact that you don't need it in the Gemfile,I wanted to make the clear, but whether or not to include it in your Gemfile anyway, is up to you. I wouldn't :) – oma Oct 17 '10 at 20:13.

Heroku doesn't support SQLite databases. You need to use PostgreSQL on production. Give that a go.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions