one git repo to rule them all\!

This commit is contained in:
Senad Uka
2015-01-22 06:38:48 +01:00
parent c003584f7e
commit 23a6fda854
149 changed files with 967 additions and 4 deletions

View File

@@ -0,0 +1,12 @@
db = URI.parse('postgres://postgres:testni_hamo2@localhost/ribica')
ActiveRecord::Base.establish_connection(
:adapter => db.scheme == 'postgres' ? 'postgresql' : db.scheme,
:host => db.host,
:username => db.user,
:password => db.password,
:database => db.path[1..-1],
:encoding => 'utf8'
)