```ruby
class Contribution < ApplicationRecord
  belongs_to :contributor
  belongs_to :commit

  validates :contributor_id, :commit_id, :presence => true
end
```

Remove needless validation in Contribution
user
```ruby
class Contribution < ApplicationRecord
  belongs_to :contributor
  belongs_to :commit
end
```
assistant