update activerecord and fix some bugs
Merge pull request #69 from junsumida/update-activerecord

update activerecord and fix some bugs