installed postgresql. yum install postgresql-libs, yum install postgresql-devel, gem install pg, and add gem 'pg' to gemfile