compitable with AcitveRecord 4