xxxxxxxxxx
rails generate migration add_fieldname_to_tablename fieldname:string.
rails generate migration addFieldnameToTablename.
xxxxxxxxxx
class AddNewColumnToTableName < ActiveRecord::Migration[6.0]
def change
add_column :table_name, :column_name, :datatype
end
end