<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -78,6 +78,20 @@ If you would like to use this mode type \&quot;yes\&quot;, type \&quot;no\&quot; or just hit enter t
         puts &quot;Done.&quot;
       end
       
+      desc &quot;Migrates from old 'assets' extension.&quot;
+      task :migrate_from_assets =&gt; :environment do
+        Asset.delete_all(&quot;thumbnail IS NOT NULL OR parent_id IS NOT NULL&quot;)
+        ActiveRecord::Base.connection.tap do |c|
+          c.rename_column :assets, :filename, :asset_file_name
+          c.rename_column :assets, :content_type, :asset_content_type
+          c.rename_column :assets, :size, :asset_file_size
+          c.remove_column :assets, :parent_id
+          c.remove_column :assets, :thumbnail
+        end
+
+        PaperclippedExtension.migrator.new(:up, PaperclippedExtension.migrations_path).send(:assume_migrated_upto_version, 3)
+        PaperclippedExtension.migrator.migrate
+      end
     end
   end
 end</diff>
      <filename>lib/tasks/assets_extension_tasks.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>bb79377f50534719a495fe662bc44bd84e6d5fcf</id>
    </parent>
    <parent>
      <id>29cebd0b40f5d06e81ddf09fb621e64cc6fb5540</id>
    </parent>
  </parents>
  <author>
    <name>Keith</name>
    <email>keith@keithbingman.com</email>
  </author>
  <url>http://github.com/kbingman/paperclipped/commit/fbc7ca165388379c6a00f4434dc2cf1afd114904</url>
  <id>fbc7ca165388379c6a00f4434dc2cf1afd114904</id>
  <committed-date>2009-07-10T02:09:48-07:00</committed-date>
  <authored-date>2009-07-10T02:09:48-07:00</authored-date>
  <message>Merge branch 'master' into gerrit</message>
  <tree>b78a56f03d8638ff6b267399d139a9d8be82cbdd</tree>
  <committer>
    <name>Keith</name>
    <email>keith@keithbingman.com</email>
  </committer>
</commit>
