diff options
author | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 17:53:40 -0400 |
---|---|---|
committer | Bryan Helmkamp <bryan@brynary.com> | 2009-05-17 17:53:40 -0400 |
commit | d2988420fc6dd91ca751d96ed648fd1ed52ce342 (patch) | |
tree | e817b2dcc2b8d018181fd676feb1648786d23de3 /spec/connections/postgresql_connection.rb | |
parent | 7fc820501ce7b997da43c47ec189aaa0d40645e1 (diff) | |
download | rails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.tar.gz rails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.tar.bz2 rails-d2988420fc6dd91ca751d96ed648fd1ed52ce342.zip |
Added PostgreSQL to build
Diffstat (limited to 'spec/connections/postgresql_connection.rb')
-rw-r--r-- | spec/connections/postgresql_connection.rb | 12 |
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' |