php rollback migration code example
Example 1: artisan rollback one migration
php artisan migrate:rollback --step=1
Example 2: migration rollback
php artisan migrate:rollback
Example 3: rails redo last migration
rake db:migrate:redo STEP=n
Example 4: rails db:rollback
rake db:rollback VERSION=n
# n = the version you want to rollback to