Fixed activerecord version