Test rails app with postgresql