extract migrations_need_to_reverted?