Uploading to Heroku DB rake:migrate problem?

By default, a new Rails application is configured to use the SQLite3 database. Heroku doesn't support SQLite3 you must use PostgreSQL You have two alternatives: Keep using SQLite3 in development and test, and switch to PostgreSQL in production Switch to PostgreSQL Either ways, you need to add the pg gem to your Gemfile (assuming you are using Rails 3) and remove sqlite3 Gemfile gem 'pg If you want to use Sqlite3 in development and test Gemfile group :development, :test do gem 'sqlite3' end group :production do gem 'pg' end You might also need to change your database. Yml configuration accordingly.

By default, a new Rails application is configured to use the SQLite3 database. Heroku doesn't support SQLite3, you must use PostgreSQL. You have two alternatives: Keep using SQLite3 in development and test, and switch to PostgreSQL in production.

Switch to PostgreSQL Either ways, you need to add the pg gem to your Gemfile (assuming you are using Rails 3) and remove sqlite3. # Gemfile gem 'pg' If you want to use Sqlite3 in development and test # Gemfile group :development, :test do gem 'sqlite3' end group :production do gem 'pg' end You might also need to change your database. Yml configuration accordingly.

Ah, that's what I'd figured. Didn't realise I'd need to remove sqlite3 though! I'll try this later, thank you :) – David Archer Sep 21 at 12:31.

Not quite the answer Simone, but after more digging, the answer finally came up. I needed to do the following: In the gemfile, I needed to change gem 'sqlite3' to: group :development, :test do gem 'sqlite3' end group :production do gem 'pg' end and then I needed to heroku create --stack cedar. Thanks for your help everyone regardless, and I hope this helps someone in the future.

Heroku doesn't support SQLite3, you must use PostgreSQL. Keep using SQLite3 in development and test, and switch to PostgreSQL in production. Either ways, you need to add the pg gem to your Gemfile (assuming you are using Rails 3) and remove sqlite3.

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