rendered paste bodyclass Governor < ActiveRecord::Base # don't hate, validate validates_presence_of :state_id validates_presence_of :prefix validates_presence_of :first_name validates_presence_of :last_name validates_numericality_of :year_elected, :only_integer => true validates_numericality_of :year_up_for_re_election, :only_integer => true validates_length_of :prefix, :maximum => 25 validates_length_of :first_name, :maximum => 50 validates_length_of :middle_name, :maximum => 50 validates_length_of :last_name, :maximum => 50 validates_length_of :year_elected, :is => 4 validates_length_of :year_elected, :maximum => 6500 # who's my daddy? belongs_to :state end