Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7604551
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 30, 20262026-05-30T23:56:19+00:00 2026-05-30T23:56:19+00:00

I installed postgres on my Mac and tried it for the first time with

  • 0

I installed postgres on my Mac and tried it for the first time with Rails. I included gem “pg” and removed the sqlite3 gem (after all, why would you need the latter if using the former). However, when I tried to start the server I got this error message

.rvm/gems/ruby-1.9.3-rc1@rails321/gems/bundler-1.0.22/lib/bundler/rubygems_integration.rb:143:in `block in replace_gem': Please install the sqlite3 adapter: `gem install activerecord-sqlite3-adapter` (sqlite3 is not part of the bundle. Add it to Gemfile.) (LoadError)

So I included the sqlite3 gem again and now the server works fine, but I actually don’t have any idea if my test app is using sqlite3 or pg?

a) Am I supposed to have the sqlite3 gem installed if I’m planning on using the pg gem?
b) If I’m only supposed to have one of the two installed, is there a way to find out which one my test app is currently using (since both of them are in the Gemfile)

Gemfile

source 'https://rubygems.org'

gem 'rails', '3.2.1'

# Bundle edge Rails instead:
# gem 'rails', :git => 'git://github.com/rails/rails.git'

gem 'pg'
gem 'devise'
gem 'sqlite3'


# Gems used only for assets and not required
# in production environments by default.
group :assets do
  gem 'sass-rails',   '~> 3.2.3'
  gem 'coffee-rails', '~> 3.2.1'

  # See https://github.com/sstephenson/execjs#readme for more supported runtimes
  # gem 'therubyracer'

  gem 'uglifier', '>= 1.0.3'
end

gem 'jquery-rails'

# To use ActiveModel has_secure_password
# gem 'bcrypt-ruby', '~> 3.0.0'

# To use Jbuilder templates for JSON
# gem 'jbuilder'

# Use unicorn as the web server
# gem 'unicorn'

# Deploy with Capistrano
# gem 'capistrano'

# To use debugger
# gem 'ruby-debug19', :require => 'ruby-debug'
  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-30T23:56:21+00:00Added an answer on May 30, 2026 at 11:56 pm

    Here was my database.yml when i was working with the pg gem, the adapter is actually called postgresql and there are a couple other differences in the settings, if you just copy and paste the code below and change the database names you should be pretty much ready (I used heroku, this worked there):

    development:
      adapter: postgresql
      encoding: utf8
      reconnect: false
      database: DATABASE_DEVELOPMENT
      pool: 5
      username: USER_NAME
      password:
      host: localhost
    
    test:
      adapter: postgresql
      encoding: utf8
      reconnect: false
      database: DATABASE_TEST
      pool: 5
      username: USER_NAME
      password:
      host: localhost
    
    production:
      adapter: postgresql
      encoding: utf8
      reconnect: false
      database: DATABASE_PRODUCTION
      pool: 5
      username: root
      password:
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Well, I have MAMP installed on my Mac OS X, and I've got PostGres
I did the following after installing Postgres locally: gem install postgres-pr I changed the
I got Postgres 8.4 installed on my mac with Snow Leopard. I know the
Postgres 8.3 is installed on a windows 2008 server. Ruby 1.8-6 installed. gem install
I'm using Rails 3.0.1. I installed the native pg gem for postgresql with this
I've a C# client application that need to checks a table on a Postgres
I installed postgres on my VM using Vagrant and Chef and when I try
I've just installed PgAdmin 8.4 on an OSX Lion 10.7.3 pc with Postgres 9.1
I have a Postgres dump file and I need to turn it into a
I have just installed PostgreSQL 8.3.4 on Mac OS X 10.5 (using ports), but

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.