update version, to using activerecord.