rails migration file code example
Example 1: how create migration rails
rails g migration AddPartNumberToProducts
Example 2: ruby on rails db migrate
rails db:migrate
Example 3: rials db down
bin/rails db:migrate:down VERSION=YYYYMMDDHHMMSS
rails g migration AddPartNumberToProducts
rails db:migrate
bin/rails db:migrate:down VERSION=YYYYMMDDHHMMSS