active record migrations remove_column code example
Example 1: rials db down
bin/rails db:migrate:down VERSION=YYYYMMDDHHMMSS
Example 2: see migration history rails
rake db:migrate:status
bin/rails db:migrate:down VERSION=YYYYMMDDHHMMSS
rake db:migrate:status