Skip to content

Commit

Permalink
Add postgres db config example and message pointing users to them
Browse files Browse the repository at this point in the history
  • Loading branch information
Empact committed Dec 5, 2009
1 parent 30b4292 commit 3c1a293
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 1 deletion.
6 changes: 6 additions & 0 deletions test/support/database.yml.postgres
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
adapter: postgresql
host: localhost
port: 5432
username: postgres
database: friendly_id_test
encoding: utf8
File renamed without changes.
2 changes: 1 addition & 1 deletion test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
require File.dirname(__FILE__) + '/support/models'

db_settings_path = File.dirname(__FILE__) + '/support/database.yml'
raise "Can not find database.yml file" unless File.exists?(db_settings_path)
raise "Can not find database config at test/support/database.yml, see tests/support/ for examples" unless File.exists?(db_settings_path)
ActiveRecord::Base.establish_connection(YAML::load(File.open(db_settings_path)))

class ActiveRecord::Base
Expand Down

0 comments on commit 3c1a293

Please sign in to comment.