updated the dependencies to activerecord 4