class OtherAccount include Mongoid::Document include Mongoid::Timestamps field :type field :email field :encrypted_password attr_encrypted :encrypted_password, :key => 'rulingorbit.com', :encode => true belongs_to :user end