-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Why: * Provide model for Contact This change addresses the need by: * Creating the 'contact' model * Creating the 'contact' factory * Creating the 'contact' spec
- Loading branch information
1 parent
50987d5
commit d18f404
Showing
7 changed files
with
358 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
class Contact < ApplicationRecord | ||
validates :contact, presence: true | ||
|
||
belongs_to :employee | ||
belongs_to :contact_type | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.