ActiveRecord::Base.connection.execute sort through migrations code example Example: how create migration rails rails g migration AddPartNumberToProducts