title: Using rake db:seed with file uploads
body: <p>I have an app that uses Paperclip, and I am also using <code>rake db:seed</code> to generate some demo accounts that can be used to help bring in new users.</p>
  
  <p>Part of the information these demo accounts should contain are access to profile photos and other files that would be hosted on Amazon S3.</p>
  
  <p>A sample of one entry in the <code>seeds</code> file:</p>
  
  <pre><code>userdemo = User.find_or_create_by_login(:login =&gt; "demo",
      :email =&gt; user.email,
      :user_type =&gt; "admin",
      :password =&gt; "demo",
      :password_confirmation =&gt; "demo")
  </code></pre>
  
  <p>How can I create the above user along with a profile photo? This would include uploading a file from my hard drive to S3 and associating that file with this record. Thanks!</p>