class System < ActiveRecord::Base set_table_name "system" validates_presence_of :password # This is actually a "has a" default web, but since the foreign key is kept here # need to model this via :belongs_to belongs_to :default_web, :class_name => 'Web', :foreign_key => 'default_web' end