ActiveRecord was neither the first ORM nor the best. Hibernate in Java was years ahead when AR came out - but arguably, Ruby (as opposed to Java/Spring) made it a lot more accessible.
In my case it was 3 weeks of work on Java redone in 3 days of Rails without even knowing Ruby yet. Hibernate could have been wonderful (I don't have fond memories of it) but AR was much much better to use.