generalized and used old rails
changed to postgres 9.2
changed back postgres version
added postgis line