class CreateMyModel < ActiveRecord::Migration[6.1] def change create_table :my_table do |t| t.string :name end end end
Can be achieved using the STEP variable:
STEP
rails db:rollback STEP=2
will roll back the last two migrations
Last updated 4 years ago