Permalink
Browse files

Migrating to Postgresql

  • Loading branch information...
1 parent 218bf5c commit 9b1d0a2a29c18bbdd6d3b1d9fb4d44c0c87f960b Chad Humphries and Jon Distad committed Oct 1, 2010
Showing with 32 additions and 68 deletions.
  1. +1 −0 .gitignore
  2. +2 −2 Gemfile
  3. +20 −20 Gemfile.lock
  4. +9 −21 config/database.example.yml
  5. +0 −25 config/database.yml
View
@@ -7,3 +7,4 @@ public/stylesheets/cache-application.css
coverage.data
test/coverage
.bundle
+config/database.yml
View
@@ -1,9 +1,9 @@
source "http://rubygems.org"
gem "rake", "0.8.7"
-gem "rails", "2.3.8"
+gem "rails", "2.3.5"
gem "ruby-openid", "2.1.7"
-gem "mysql", "2.8.1"
+gem "pg", "0.9.0"
gem "rdiscount", "1.6.5"
gem "chronic", "0.2.3"
View
@@ -1,16 +1,16 @@
GEM
remote: http://rubygems.org/
specs:
- actionmailer (2.3.8)
- actionpack (= 2.3.8)
- actionpack (2.3.8)
- activesupport (= 2.3.8)
- rack (~> 1.1.0)
- activerecord (2.3.8)
- activesupport (= 2.3.8)
- activeresource (2.3.8)
- activesupport (= 2.3.8)
- activesupport (2.3.8)
+ actionmailer (2.3.5)
+ actionpack (= 2.3.5)
+ actionpack (2.3.5)
+ activesupport (= 2.3.5)
+ rack (~> 1.0.0)
+ activerecord (2.3.5)
+ activesupport (= 2.3.5)
+ activeresource (2.3.5)
+ activesupport (= 2.3.5)
+ activesupport (2.3.5)
chronic (0.2.3)
hoe (>= 1.2.1)
flexmock (0.8.7)
@@ -19,14 +19,14 @@ GEM
rubyforge (>= 2.0.4)
json_pure (1.4.6)
levenshtein (0.2.0)
- mysql (2.8.1)
- rack (1.1.0)
- rails (2.3.8)
- actionmailer (= 2.3.8)
- actionpack (= 2.3.8)
- activerecord (= 2.3.8)
- activeresource (= 2.3.8)
- activesupport (= 2.3.8)
+ pg (0.9.0)
+ rack (1.0.1)
+ rails (2.3.5)
+ actionmailer (= 2.3.5)
+ actionpack (= 2.3.5)
+ activerecord (= 2.3.5)
+ activeresource (= 2.3.5)
+ activesupport (= 2.3.5)
rake (>= 0.8.3)
rake (0.8.7)
rcov (0.9.9)
@@ -44,8 +44,8 @@ DEPENDENCIES
chronic (= 0.2.3)
flexmock (= 0.8.7)
levenshtein (= 0.2.0)
- mysql (= 2.8.1)
- rails (= 2.3.8)
+ pg (= 0.9.0)
+ rails (= 2.3.5)
rake (= 0.8.7)
rcov (= 0.9.9)
rdiscount (= 1.6.5)
@@ -1,25 +1,13 @@
-# SQLite version 3.x
-# gem install sqlite3-ruby (not necessary on OS X Leopard)
+shared: &shared
+ adapter: postgresql
+ encoding: unicode
+ pool: 5
+ min_messages: warning
+
development:
- host: 127.0.0.1
- adapter: mysql
- database: clojuredocs
- username: root
- password:
+ database: clojuredocs_development
+ <<: *shared
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
test:
- host: 127.0.0.1
- adapter: mysql
database: clojuredocs_test
- username: root
- password:
-
-production:
- host: 127.0.0.1
- adapter: mysql
- database: clojuredocs
- username: root
- password:
+ <<: *shared
View
@@ -1,25 +0,0 @@
-# SQLite version 3.x
-# gem install sqlite3-ruby (not necessary on OS X Leopard)
-development:
- host: 127.0.0.1
- adapter: mysql
- database: clojuredocs
- username: root
- password:
-
-# Warning: The database defined as "test" will be erased and
-# re-generated from your development database when you run "rake".
-# Do not set this db to the same as development or production.
-test:
- host: 127.0.0.1
- adapter: mysql
- database: clojuredocs_test
- username: root
- password:
-
-production:
- host: 127.0.0.1
- adapter: mysql
- database: clojuredocs
- username: root
- password:

0 comments on commit 9b1d0a2

Please sign in to comment.