Relax ActiveRecord dependency: from 3.0 onwards