Rails3: validate: app/models/attachment.rb