when does rails migrations run code example Example: how create migration rails rails g migration AddPartNumberToProducts