Displaying 1 result from an estimated 1 matches for "file_download_id".
2007 Nov 14
1
New Foxy Fixtures (Rails 2) & STI (Single Table Inheritance)
I''ve got some problems right now using the new model for relationships
in fixtures (by label, not by id) and STI.  What I''ve got, is a couple
of models:
Attachment
--> FileDownload
Version
Version has_one file_download with file_download_id on the versions
table
In my fixtures, I have two FileDownloads in my attachments.yml like
so:
hemingway_alpha_zip:
  size: 100
  filename: hemingway_alpha.zip
  content_type: application/zip
  type: FileDownload
  project: hemingway
now, in my versions.yml, I have:
alpha:
  name: Alpha 1
  revi...