X-Git-Url: https://projects.mako.cc/source/selectricity/blobdiff_plain/6d422530319d9fbacc37c271e22778d07414f0da..4efa3e9bc47cc649205a399fde51ed7e61bef7f8:/app/models/election.rb diff --git a/app/models/election.rb b/app/models/election.rb index 61286e1..69038e4 100644 --- a/app/models/election.rb +++ b/app/models/election.rb @@ -2,6 +2,7 @@ class Election < ActiveRecord::Base has_many :candidates has_many :voters has_many :votes + belongs_to :user validates_presence_of :name, :description require 'date'