rails Self Joins migration code example
Example 1: how create migration rails
rails g migration AddPartNumberToProducts
Example 2: ruby on rails db migrate
rails db:migrate
rails g migration AddPartNumberToProducts
rails db:migrate