I'm working on upgrading from attachment_fu to carrierwave, since attachment_fu is broken in rails 3.
None of the tests are able to run, because we have invalid fixtures that were using the syntax from attachment_fu for attachment files.
For example, we have a Post model that has one PostAttachment. Here's what the data in the PostAttachment fixture looks like:
a_image:
post_id: 1
attachment_file: <%= Rails.root>/test/files/test.png
And this is the error I'm getting:
ActiveRecord::StatementInvalid: PGError: ERROR: column "attachment_file" of relation "post_attachments" does not exist
LINE 1: INSERT INTO "post_attachments" ("post_id", "attachment_file"...
attachment_file
would have been picked up by attachment_fu, and it would have taken care of all the processing to create the attachment_fu attachment for the model.
Is there a way to have image attachments in the fixtures, but with using CarrierWave instead?