class InformationStandardCriterium < ActiveRecord::Base

  attr_accessible :information_standard_id, :name, :percent

  # Validations
  validates :name, :information_standard_id, presence: true
  validates :percent, numericality: { greater_than: 0 }

  # Associations
  belongs_to :institution_standard
  has_and_belongs_to_many :information_ranking_histories, join_table: :information_ranking_histories_criteria
end
