I found several similar questions on editing migration, but could not figure it out. I migrated the rails, then opened the migration file and added the default field value to the field. Then ran rake db: migrate. The default value is filled in as intended. Then a few migrations, I decided that I want to remove the default value. How can I do it?
If this was the last migration, I used db: rollback and recreate, but since several transitions have been made, I do not know how to fix this.
Rate the help.
source share