simplify activerecord