broadcast_message.rb 224 Bytes
Newer Older
1 2 3 4
class BroadcastMessage < ActiveRecord::Base
  attr_accessible :alert_type, :ends_at, :message, :starts_at

  validates :message, presence: true
5 6
  validates :starts_at, presence: true
  validates :ends_at, presence: true
7
end