Add Model changes to work with votation_types

This commit is contained in:
lalo
2019-05-29 16:51:29 +02:00
committed by Javi Martín
parent c505fd373c
commit 7c9c50f4c6
18 changed files with 745 additions and 3 deletions

View File

@@ -35,6 +35,7 @@ class User < ApplicationRecord
has_many :follows
has_many :budget_rol_assignments
has_many :budgets, through: :budget_rol_assignments
has_many :votation_set_answers
belongs_to :geozone
validates :username, presence: true, if: :username_required?