In Laravel, there appears to be a command for creating a migration, but not removing.
Create migration command:
php artisan migrate:make create_users_tab
I accidentally created a migration with a bad name (command: php artisan migrate:make). I did not run (php artisan migrate) the migration, so I decided to remove it.
My steps:
app/database/migrations/my_migration_file_name.phpcomposer dump-autoloadIf you did run the migration (php artisan migrate), you may do this:
a) Run migrate:rollback - it is the right way to undo the last migration (Thnx @Jakobud)
b) If migrate:rollback does not work, do it manually (I remember bugs with migrate:rollback in previous versions):
app/database/migrations/my_migration_file_name.phpcomposer dump-autoload