Allow activerecord version 4.0.x