aboutsummaryrefslogtreecommitdiffstats
path: root/spec/connections
diff options
context:
space:
mode:
authorBryan Helmkamp <bryan@brynary.com>2009-05-17 17:53:40 -0400
committerBryan Helmkamp <bryan@brynary.com>2009-05-17 17:53:40 -0400
commitd2988420fc6dd91ca751d96ed648fd1ed52ce342 (patch)
treee817b2dcc2b8d018181fd676feb1648786d23de3 /spec/connections
parent7fc820501ce7b997da43c47ec189aaa0d40645e1 (diff)
downloadrails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.tar.gz
rails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.tar.bz2
rails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.zip
Added PostgreSQL to build
Diffstat (limited to 'spec/connections')
-rw-r--r--spec/connections/postgresql_connection.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/connections/postgresql_connection.rb b/spec/connections/postgresql_connection.rb
new file mode 100644
index 0000000000..505dcdd1ef
--- /dev/null
+++ b/spec/connections/postgresql_connection.rb
@@ -0,0 +1,12 @@
+require "activerecord"
+puts "Using native PostgreSQL"
+
+ActiveRecord::Base.configurations = {
+ 'unit' => {
+ :adapter => 'postgresql',
+ :encoding => 'utf8',
+ :database => 'arel_unit',
+ }
+}
+
+ActiveRecord::Base.establish_connection 'unit'