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

Commit

Permalink
added address validation
Browse files Browse the repository at this point in the history
  • Loading branch information
seth committed Apr 19, 2017
1 parent 5e12dfe commit aa05cdb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions app/models/house.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,6 @@
class House < ActiveRecord::Base
has_many :parents
has_many :children, through: :parents

validates :address, presence: true
end

0 comments on commit aa05cdb

Please sign in to comment.