patching active_record warnings