Skip to content

Commit

Permalink
Type of cost mandatory for homes
Browse files Browse the repository at this point in the history
  • Loading branch information
martent committed Jan 11, 2019
1 parent 41575b0 commit 61d22ae
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/home.rb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ class Home < ApplicationRecord
belongs_to :owner_type

validates_uniqueness_of :name, case_sensitive: false
validates_presence_of :name
validates_presence_of :name, :type_of_cost
validates_length_of :name, maximum: 191

# Remove data not allowed for the home and it's placements
Expand Down

0 comments on commit 61d22ae

Please sign in to comment.