Handle nil failed_attempts
Add nulls to migration generator
Merge pull request #2605 from sekrett/master

Handle nil failed_attempts