GOP Rails Models for Marriage
#normal, rational human beings with no religious agenda
class Marriage < ActiveRecord::Base
validates :human_one, :human_two, :presence => true
end
#standard GOP/Fundamentalist Model
class Marriage < ActiveRecord::Base
validates :husband, :uniqueness => true, :presence => true,
:male => true, :message => "It's ADAM, not MADAM"
validates :wife, :uniqueness => true, :presence => true,
:female => true, :message => "It's EVE, not STEVE"
end
#John Huntsman Model
class Marriage < ActiveRecord::Base
validates :man, :woman, :uniqueness => true, :presence => true
validates :kids, :numericality => { :greater_than_or_equal_to => 10}
end
#Newt Gingrich Model
class Marriage < ActiveRecord::Base
validates :husband, :presence => true, :male => true
validates :wife, :presence => true, :uniqueness => true, :female => true
validates :active, :presence => true
end
#Mitt Romney Models
class Marriage < ActiveRecord::Base
validates :husband, :presence => true, :male => true
validates :wife, :presence => true, :uniqueness => true, :female => true
end
class CivilUnion < ActiveRecord::Base
validates :person_one, :person_two, :presence => true, :uniqueness => true
validates :designation, :exclusion => {:in => %w(marriage),
:message => "Cannot be called 'Marriage', please come up with something else!"}
end
#Rick Santorum Models
class Marriage < ActiveRecord::Base
validates :man, :woman, :uniqueness => true, :presence => true
end
class CivilUnion < ActiveRecord::Base
raise "will never be implemented, burn in the fires of hell sinner"
end