Update activity_model for database compatibility

Based on patch from @cpcbell
https://github.com/cpcbell/Bonfire/commit/234b5dc774171363ba8f5dba9e36ec59ab2868f9
as a partial fix for issues discussed in #1045