Hello,
database.yml seems to be ok (maybe schema_order... i don't know i don't use this parameter). are you sure about your postgresql database config? can you connect from application server to your postgresql database? if not check : - pg_hba.conf should be configure to allow application server to connect. - and listen_addresses in postgresql.conf should be correct to.
bye