class Attachment < ActiveRecord::Base belongs_to :author, :class_name => "User" end