```ruby
class RemoveUnnecessaryClientAppFields < ActiveRecord::Migration
  def change
    remove_reference :messages, :oauth_application
    remove_column :oauth_application, :endpoint_email, :string
  end
end
```

Update migration to remove redundancy
user
```ruby
class RemoveUnnecessaryClientAppFields < ActiveRecord::Migration
  def change
    remove_column :oauth_application, :endpoint_email, :string
  end
end
```
assistant