I think that confirms what @Tarek_Khalil suspected. The migration has run, but rails hasn’t recorded it in the scheme_migration_details table.
Do you have any backups from before 2018-04-22 05:23? Restoring from a backup would probably be the best thing for the integrity of the database.