class ChangeUserNameFields < ActiveRecord::Migration[6.0]
  def up
    change_table :Users, bulk: true do |t|
      t.change :Suffix, :string, limit: 5, null: true
      t.change :MiddleName, :string, limit: 32, null: true
    end
  end

  def down
    change_table :Users, bulk: true do |t|
      t.change :Suffix, :string, null: false, limit: 5, default: nil
      t.change :MiddleName, :string, null: false, limit: 2, default: ''
    end
  end
end
