Skip to content
This repository has been archived by the owner on Mar 8, 2020. It is now read-only.

Fixed bug #22

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/models/partner.rb
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@ class Partner < ApplicationRecord

belongs_to :organization
has_many :distributions, dependent: :destroy
has_many :requests, dependent: :destroy

validates :organization, presence: true
validates :name, :email, presence: true, uniqueness: true
Expand Down