<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -24,7 +24,7 @@ class AddAttachmentsIconToProfile &lt; ActiveRecord::Migration
   end
 
   def self.down
-    add_column :profiles, :image
+    add_column :profiles, :icon, :string
 
     remove_crop(&quot;plugins.tog_social.profile.image.versions.big&quot;)
     remove_crop(&quot;plugins.tog_social.profile.image.versions.medium&quot;)
@@ -32,8 +32,8 @@ class AddAttachmentsIconToProfile &lt; ActiveRecord::Migration
     remove_crop(&quot;plugins.tog_social.profile.image.versions.tiny&quot;)
 
     Profile.all.each do |p|
-      unless p.image_file_name.blank?
-        p.icon = File.new(&quot;public/system/profiles/images/#{p.id}/#{p.image_file_name}&quot;) if File.exists?(&quot;public/system/profiles/images/#{p.id}/#{p.image_file_name}&quot;)
+      unless p.icon_file_name.blank?
+        p.icon = File.new(&quot;public/system/profiles/images/#{p.id}/#{p.icon_file_name}&quot;) if File.exists?(&quot;public/system/profiles/images/#{p.id}/#{p.icon_file_name}&quot;)
         p.save!
       end
     end</diff>
      <filename>db/migrate/002_add_attachments_icon_to_profile.rb</filename>
    </modified>
    <modified>
      <diff>@@ -24,7 +24,7 @@ class AddAttachmentsImageToGroup &lt; ActiveRecord::Migration
   end
 
   def self.down
-    add_column :groups, :image
+    add_column :groups, :image, :string
 
     remove_crop(&quot;plugins.tog_social.group.image.versions.big&quot;)
     remove_crop(&quot;plugins.tog_social.group.image.versions.medium&quot;)</diff>
      <filename>db/migrate/003_add_attachments_image_to_group.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>b61ff509bf8dfeeff5ed1a81c2dc2ba9174518b4</id>
    </parent>
  </parents>
  <author>
    <name>Alberto Molpeceres</name>
    <email>alberto.molpeceres@gmail.com</email>
  </author>
  <url>http://github.com/tog/tog_social/commit/3a3a77ee225f78533164b1f4946e8871dd504dc6</url>
  <id>3a3a77ee225f78533164b1f4946e8871dd504dc6</id>
  <committed-date>2009-01-22T02:12:07-08:00</committed-date>
  <authored-date>2009-01-22T02:12:07-08:00</authored-date>
  <message>fixed down method in file_column to paperclip migrations</message>
  <tree>6d665e5d786f23e4fcb31349c6b41991c9431f98</tree>
  <committer>
    <name>Alberto Molpeceres</name>
    <email>alberto.molpeceres@gmail.com</email>
  </committer>
</commit>
