```ruby
class FixPhoneNumberFields < ActiveRecord::Migration
  def change
    Organization.all.each do |o|
      old_phone = o.phone
      new_phone = old_phone.gsub(/[^0-9]/, "")
      o.update(phone: new_phone)
    end
    puts Organization.pluck(:phone)
    change_column :organizations, :phone, :string, :limit => 10, :null => false
    add_column    :organizations, :phone_ext, :string, :limit => 6, :default => nil, :after => :phone
  end
end
```

Fix phone number migration to add extension only wherever there is a phone number field
user
```ruby
class FixPhoneNumberFields < ActiveRecord::Migration
  def change
    add_column    :organizations, :phone_ext, :string, :limit => 6, :default => nil, :after => :phone
    add_column    :users,         :phone_ext, :string, :limit => 6, :default => nil, :after => :phone
    add_column    :vendors,       :phone_ext, :string, :limit => 6, :default => nil, :after => :phone
  end
end
```
assistant