Basic poll implementation

This commit is contained in:
Martin Lensment 2014-11-06 13:51:28 +02:00
parent c0edfd4b5b
commit 6888cd15a4
13 changed files with 82 additions and 21 deletions

View file

@ -1,3 +1,7 @@
class Message < ActiveRecord::Base
belongs_to :registrar
before_create -> { self.queued = true }
scope :queued, -> { where(queued: true) }
end