Change activerecord version to 4