Use PostgreSQL in development

This commit is contained in:
Erik Michaels-Ober 2011-02-23 15:42:28 -05:00
parent 49c09935ed
commit 9f70bbda4e
3 changed files with 12 additions and 32 deletions

32
Gemfile
View File

@ -2,30 +2,10 @@ source 'http://rubygems.org'
gem 'rails', '3.0.4' gem 'rails', '3.0.4'
# Bundle edge Rails instead: group :development do
# gem 'rails', :git => 'git://github.com/rails/rails.git' gem 'pg'
end
gem 'sqlite3' group :test do
gem 'sqlite3'
# Use unicorn as the web server end
# gem 'unicorn'
# Deploy with Capistrano
# gem 'capistrano'
# To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
# gem 'ruby-debug'
# gem 'ruby-debug19'
# Bundle the extra gems:
# gem 'bj'
# gem 'nokogiri'
# gem 'sqlite3-ruby', :require => 'sqlite3'
# gem 'aws-s3', :require => 'aws/s3'
# Bundle gems for the local environment. Make sure to
# put test-only gems in this group so their generators
# and rake tasks are available in development mode:
# group :development, :test do
# gem 'webrat'
# end

View File

@ -39,6 +39,7 @@ GEM
mime-types (~> 1.16) mime-types (~> 1.16)
treetop (~> 1.4.8) treetop (~> 1.4.8)
mime-types (1.16) mime-types (1.16)
pg (0.10.1)
polyglot (0.3.1) polyglot (0.3.1)
rack (1.2.1) rack (1.2.1)
rack-mount (0.6.13) rack-mount (0.6.13)
@ -69,5 +70,6 @@ PLATFORMS
ruby ruby
DEPENDENCIES DEPENDENCIES
pg
rails (= 3.0.4) rails (= 3.0.4)
sqlite3 sqlite3

View File

@ -1,10 +1,8 @@
# SQLite version 3.x
# gem install sqlite3
development: development:
adapter: sqlite3 adapter: postgresql
database: db/development.sqlite3 database: adopt-a-hydrant
pool: 5 username: postgres
timeout: 5000 password:
# Warning: The database defined as "test" will be erased and # Warning: The database defined as "test" will be erased and
# re-generated from your development database when you run "rake". # re-generated from your development database when you run "rake".