Changed dependency to activerecord 4