displays failed census calls [#500]

This commit is contained in:
rgarcia
2015-09-24 10:47:43 +02:00
parent 3bfbdcaf01
commit e9e97daf46
4 changed files with 21 additions and 0 deletions

View File

@@ -22,6 +22,7 @@ class User < ActiveRecord::Base
has_many :debates, -> { with_hidden }, foreign_key: :author_id
has_many :proposals, -> { with_hidden }, foreign_key: :author_id
has_many :comments, -> { with_hidden }
has_many :failed_census_calls
validates :username, presence: true, unless: :organization?
validates :username, uniqueness: true, unless: :organization?