class Ban < ActiveRecord::Base
  attr_accessible :frequency_id, :hostmask, :reason, :valid_from, :valid_to, :activate

  # Relation
  belongs_to :frequency

  # Validation
  validates_presence_of :frequency_id
  validates_presence_of :frequency_id, :on => :update

end
