PG::UndefinedTable: FOUT: relatie "pg_range" bestaat niet

According to that SO link you either have an old or corrupt database.