rails rollback all migrations code example
Example 1: laravel rollback last migration
php artisan migrate:rollback --step=1
Example 2: Add references rails migration
rails g migration AddUserToUploads user:references
Example 3: rails revert migration
rake db:rollback
Example 4: rails redo last migration
rake db:migrate:redo STEP=n