activemodel compatibility

activemodel is not compatible with older version so mysqli (no newer
compatability has been broken)