#20 ✓resolved
Ryan McGeary

Conflicts with schema_validations plugin

Reported by Ryan McGeary | January 15th, 2008 @ 04:56 PM

I ran into issues using attachment_fu while also using the schema_validation plugin. Our model looks like this (no need for thumbnails):

class Document < ActiveRecord::Base
  has_attachment :content_type => 'application/pdf', :storage => :s3
end

Afterwards, schema_validations blows up after it cannot find a parent_id column. Rightfully so, since we don't have one, but it was triggered by attachment_fu declaring a belongs_to :parent relationship.

Attached is the diff to workaround this problem.

Comments and changes to this ticket

Please Sign in or create a free account to add a new ticket.

With your very own profile, you can contribute to projects, track your activity, watch tickets, receive and update tickets through your email and much more.

New-ticket Create new ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile ยป

People watching this ticket

Attachments

Pages