Fixed activerecord dependency