vb.
homepoststilabout LIGHT DARK
RAILS

Migrate Rollback and Re-Migrate

Apr 26, 2021 Vadim Brodsky Apr 26, 2021 Vadim Brodsky

Useful command1 to test if the custom migration is working as expected for both up and down

  1. Active Record Migration - Rails Guides ↩

Useful command1 to test if the custom migration is working as expected for both up and down

bin/rails db:migrate:redo

# or with step
bin/rails db:migrate:redo STEP=3
  1. Active Record Migration - Rails Guides ↩

Previous
First or Initialize
Next
Polymorphic belongs_to in Fixtures
thanks rss © 2021