Migrations
Create a new model
class CreateMyModel < ActiveRecord::Migration[6.1]
def change
create_table :my_table do |t|
t.string :name
end
end
endRollback multiple steps
rails db:rollback STEP=2Last updated