Added activerecord::transaction