<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>UPGRADE_NOTES</filename>
    </added>
    <added>
      <filename>vendor/gems/paperclip-2.1.2/.specification</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,5 +1,6 @@
 How to get LovdByLess up and running
 
+USERS WHO ARE UPGRADING READ THE UPGRADE NOTES
 
 WINDOWS USERS READ THIS: http://www.gamutworks.net/blog/?p=17
 UBUNTO USERS READ THIS: http://groups.google.com/group/lovdbyless/browse_thread/thread/d29043342c47f06?hl=en</diff>
      <filename>README</filename>
    </modified>
    <modified>
      <diff>@@ -9,8 +9,8 @@ module PhotosHelper
   
   def photo_path photo = nil, size = :square
     path = nil
-    unless photo.nil? || photo.image.blank?
-      path = url_for_file_column(photo, :image, size.to_s) rescue nil
+    unless photo.image.exists?
+      path = photo.image.url(size) rescue nil
     end
     path = missing_photo_path(size) if path.nil?
     return path</diff>
      <filename>app/helpers/photos_helper.rb</filename>
    </modified>
    <modified>
      <diff>@@ -18,7 +18,7 @@ class Photo &lt; ActiveRecord::Base
   
   belongs_to :profile
   
-  has_attached_file :image, :styles =&gt; { :square =&gt; &quot;50x50#&quot;, :small =&gt; &quot;175x250&gt;&quot;}
+  has_attached_file :image, :styles =&gt; { :square =&gt; &quot;50x50#&quot;, :small =&gt; &quot;175x250&gt;&quot;}, :path =&gt; &quot;:rails_root/public/system/:attachment/:id/:style/:basename.:extension&quot;
   
   validates_attachment_presence :image
   validates_presence_of :profile_id
@@ -28,12 +28,5 @@ class Photo &lt; ActiveRecord::Base
     feed_item = FeedItem.create(:item =&gt; self)
     ([profile] + profile.friends + profile.followers).each{ |p| p.feed_items &lt;&lt; feed_item }
   end
-  
-  # file_column :image, :magick =&gt; {
-  #   :versions =&gt; { 
-  #     :square =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; &quot;50x50&quot;, :name =&gt; &quot;square&quot;},
-  #     :small =&gt; &quot;175x250&gt;&quot;
-  #   }
-  # }
     
 end</diff>
      <filename>app/models/photo.rb</filename>
    </modified>
    <modified>
      <diff>@@ -78,15 +78,14 @@ class Profile &lt; ActiveRecord::Base
     set_property :min_prefix_len =&gt; 3, :morphology =&gt; false
   end
   
-  has_attached_file :icon, :styles =&gt; { :big =&gt; &quot;150x150#&quot;, :medium =&gt; &quot;100x100#&quot;, :small =&gt; &quot;50x50#&quot; }, :default_url =&gt; &quot;/avatar_default_:style.png&quot;
-  # 
-  # file_column :icon, :magick =&gt; {
-  #   :versions =&gt; { 
-  #     :big =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; &quot;150x150&quot;, :name =&gt; &quot;big&quot;},
-  #     :medium =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; &quot;100x100&quot;, :name =&gt; &quot;medium&quot;},
-  #     :small =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; &quot;50x50&quot;, :name =&gt; &quot;small&quot;}
-  #   }
-  # }
+  has_attached_file :icon,
+    :styles =&gt; {
+      :big =&gt; &quot;150x150#&quot;,
+      :medium =&gt; &quot;100x100#&quot;,
+      :small =&gt; &quot;50x50#&quot;
+    },
+    :default_url =&gt; &quot;/avatar_default_:style.png&quot;,
+    :path =&gt; &quot;:rails_root/public/system/:attachment/:id/:style/:basename.:extension&quot;
   
   cattr_accessor :featured_profile
   @@featured_profile = {:date=&gt;Date.today-4, :profile=&gt;nil}</diff>
      <filename>app/models/profile.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,7 +7,7 @@ require 'avatar/source/wrapper/string_substitution_source_wrapper'
 require 'sized_gravatar_source'
 
 # order:
-# 1.  FileColumn(Profile#icon)
+# 1.  Paperclip(Profile#icon)
 # 2.  Gravatar(Profile#email), with default
 #       a RailsAssetSourceWrapper containing
 #         a StringSubstitutionSourceWrapper containing</diff>
      <filename>config/initializers/avatar_sources.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,6 @@
 class MoveToPaperclip &lt; ActiveRecord::Migration
+  DEFAULT_FILE_COLUMN_PATH = File.join(RAILS_ROOT, &quot;public&quot;, 'system')
+  
   def self.up
     # Profiles
     add_column :profiles, :icon_file_name, :string
@@ -7,8 +9,8 @@ class MoveToPaperclip &lt; ActiveRecord::Migration
     add_column :profiles, :icon_updated_at, :datetime
     
     Profile.find_each do |profile|
-      next unless profile.old_icon
-      profile.icon = File.new(profile.old_icon)
+      next unless profile.read_attribute('icon')
+      profile.icon = File.new(File.join(DEFAULT_FILE_COLUMN_PATH, 'profile', 'icon', profile.id.to_s, profile.read_attribute('icon')))
       profile.save
     end
     
@@ -21,8 +23,8 @@ class MoveToPaperclip &lt; ActiveRecord::Migration
     add_column :photos, :image_updated_at, :datetime
     
     Photo.find_each do |photo|
-      next unless photo.old_image
-      photo.image = File.new(profile.old_image)
+      next unless photo.read_attribute('image')
+      photo.image = File.new(File.join(DEFAULT_FILE_COLUMN_PATH, 'photo', 'image', photo.id.to_s, photo.read_attribute('image')))
       photo.save
     end
     
@@ -30,61 +32,6 @@ class MoveToPaperclip &lt; ActiveRecord::Migration
   end
 
   def self.down
-    # Profiles
-    add_column :profiles, :icon, :string
-    
-    Profile.find_each do |profile|
-      next unless profile.icon
-      profile.old_icon = File.new(profile.icon.path)
-      profile.save
-    end
-    
-    remove_column :profiles, :icon_updated_at
-    remove_column :profiles, :icon_file_size
-    remove_column :profiles, :icon_content_type
-    remove_column :profiles, :icon_file_name
-    
-    # Photos
-    add_column :photos, :image, :string
-    
-    Photo.find_each do |photo|
-      next unless photo.image
-      photo.old_image = File.new(photo.image.path)
-      photo.save
-    end
-    
-    remove_column :photos, :image_updated_at
-    remove_column :photos, :image_file_size
-    remove_column :photos, :image_content_type
-    remove_column :photos, :image_file_name
+    raise ActiveRecord::IrreversibleMigration.new('The migrations from file_column to paperclip is not reversable')
   end
-end
-
-
-# just for redundancy. we want this to be a reverdable migration.
-class Profile &lt; ActiveRecord::Base
-  file_column :icon, :magick =&gt; {
-    :versions =&gt; { 
-      :big =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; &quot;150x150&quot;, :name =&gt; &quot;big&quot;},
-      :medium =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; &quot;100x100&quot;, :name =&gt; &quot;medium&quot;},
-      :small =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; &quot;50x50&quot;, :name =&gt; &quot;small&quot;}
-    }
-  }
-  alias_method :old_icon=, :icon=
-  alias_method :old_icon, :icon
-  
-  has_attached_file :icon, :styles =&gt; { :big =&gt; &quot;150x150&gt;&quot;, :medium =&gt; &quot;100x100&gt;&quot;, :small =&gt; &quot;50x50&gt;&quot; }
-end
-
-class Photo &lt; ActiveRecord::Base
-  file_column :image, :magick =&gt; {
-    :versions =&gt; { 
-      :square =&gt; {:crop =&gt; &quot;1:1&quot;, :size =&gt; &quot;50x50&quot;, :name =&gt; &quot;square&quot;},
-      :small =&gt; &quot;175x250&gt;&quot;
-    }
-  }
-  alias_method :old_image=, :image=
-  alias_method :old_image, :image
-  
-  has_attached_file :image, :styles =&gt; { :square =&gt; &quot;50x50#&quot;, :small =&gt; &quot;175x250&gt;&quot;}
 end
\ No newline at end of file</diff>
      <filename>db/migrate/20091006171847_move_to_paperclip.rb</filename>
    </modified>
    <modified>
      <diff>@@ -124,19 +124,19 @@ class ProfilesControllerTest &lt; ActionController::TestCase
       #raise (p.send :icon_state).inspect
       assert_not_nil p.icon
       get :show, {:id =&gt; p.id, :public_view =&gt; true}, {:user =&gt; p.id}
-      assert_tag :img, :attributes =&gt; { :src =&gt; /\/system\/icons\/\d*\/big\/user.png/ }
+      assert_tag :img, :attributes =&gt; { :src =&gt; /\/icons\/\d*\/big\/user.png/ }
     end
     
     should 'use gravatar otherwise' do
       p =  profiles(:user2)
-      assert !p.icon.file?
+      assert !p.icon.exists?
       get :show, {:id =&gt; p.id}, {:user =&gt; p.id, :public_view =&gt; true}
       assert_tag :img, :attributes =&gt; {:src =&gt; /www\.gravatar\.com/}
     end
     
     should 'send the app\'s internal default as the default to gravatar' do
       p =  profiles(:user2)
-      assert !p.icon.file?
+      assert !p.icon.exists?
       get :show, {:id =&gt; p.id}, {:user =&gt; p.id, :public_view =&gt; true}
       assert_tag :img, :attributes =&gt; { :src =&gt; /http...www.gravatar.com\/avatar\/[0-9a-f]+\?size\=50&amp;amp;default\=http...test\.host\/images\/avatar_default_small\.png/ }
     end
@@ -148,7 +148,7 @@ class ProfilesControllerTest &lt; ActionController::TestCase
       assert_not_nil profiles(:user).icon
       post :delete_icon, {:id =&gt; profiles(:user).id, :format =&gt; 'js'}, {:user =&gt; profiles(:user).id}
       assert_response :success
-      assert !assigns(:p).reload.icon.file?
+      assert !assigns(:p).reload.icon.exists?
     end
   end
 </diff>
      <filename>test/functional/profiles_controller_test.rb</filename>
    </modified>
    <modified>
      <diff>@@ -27,10 +27,13 @@ files:
 - test/colored_test.rb
 has_rdoc: false
 homepage: http://errtheblog.com/
+licenses: []
+
 post_install_message: 
 rdoc_options: []
 
 require_paths: 
+- bin
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement 
   requirements: 
@@ -47,7 +50,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
 requirements: []
 
 rubyforge_project: 
-rubygems_version: 1.3.1
+rubygems_version: 1.3.5
 signing_key: 
 specification_version: 2
 summary: Add some color to your life.</diff>
      <filename>vendor/gems/colored-1.1/.specification</filename>
    </modified>
    <modified>
      <diff>@@ -51,6 +51,8 @@ files:
 - lib/avatar.rb
 has_rdoc: true
 homepage: http://github.com/gcnovus/avatar
+licenses: []
+
 post_install_message: 
 rdoc_options: 
 - --line-numbers
@@ -60,6 +62,7 @@ rdoc_options:
 - --charset
 - utf-8
 require_paths: 
+- bin
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement 
   requirements: 
@@ -76,7 +79,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
 requirements: []
 
 rubyforge_project: 
-rubygems_version: 1.3.1
+rubygems_version: 1.3.5
 signing_key: 
 specification_version: 2
 summary: Multi-source avatar support</diff>
      <filename>vendor/gems/gcnovus-avatar-0.0.7/.specification</filename>
    </modified>
    <modified>
      <diff>@@ -195,6 +195,8 @@ files:
 - RELEASE
 has_rdoc: true
 homepage: http://mocha.rubyforge.org
+licenses: []
+
 post_install_message: 
 rdoc_options: 
 - --title
@@ -204,6 +206,7 @@ rdoc_options:
 - --line-numbers
 require_paths: 
 - bin
+- bin
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement 
   requirements: 
@@ -220,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
 requirements: []
 
 rubyforge_project: mocha
-rubygems_version: 1.3.1
+rubygems_version: 1.3.5
 signing_key: 
 specification_version: 2
 summary: Mocking and stubbing library</diff>
      <filename>vendor/gems/mocha-0.9.3/.specification</filename>
    </modified>
    <modified>
      <diff>@@ -32,10 +32,13 @@ files:
 - test/test_fake.rb
 has_rdoc: false
 homepage: http://errtheblog.com/post/15, http://on-ruby.blogspot.com/
+licenses: []
+
 post_install_message: 
 rdoc_options: []
 
 require_paths: 
+- bin
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement 
   requirements: 
@@ -52,7 +55,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
 requirements: []
 
 rubyforge_project: 
-rubygems_version: 1.3.1
+rubygems_version: 1.3.5
 signing_key: 
 specification_version: 2
 summary: redgreen is an expanded version of Pat Eyler's RedGreen</diff>
      <filename>vendor/gems/redgreen-1.2.2/.specification</filename>
    </modified>
    <modified>
      <diff>@@ -65,12 +65,15 @@ files:
 - README
 has_rdoc: true
 homepage: http://uuidtools.rubyforge.org/
+licenses: []
+
 post_install_message: 
 rdoc_options: 
 - --main
 - README
 require_paths: 
 - bin
+- bin
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement 
   requirements: 
@@ -87,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
 requirements: []
 
 rubyforge_project: uuidtools
-rubygems_version: 1.3.1
+rubygems_version: 1.3.5
 signing_key: 
 specification_version: 2
 summary: UUID generator</diff>
      <filename>vendor/gems/uuidtools-1.0.4/.specification</filename>
    </modified>
    <modified>
      <diff>@@ -72,10 +72,13 @@ files:
 - test/view_test.rb
 has_rdoc: true
 homepage: http://github.com/mislav/will_paginate
+licenses: []
+
 post_install_message: 
 rdoc_options: []
 
 require_paths: 
+- bin
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement 
   requirements: 
@@ -92,7 +95,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
 requirements: []
 
 rubyforge_project: will-paginate
-rubygems_version: 1.3.1
+rubygems_version: 1.3.5
 signing_key: 
 specification_version: 2
 summary: Most awesome pagination solution for Rails</diff>
      <filename>vendor/gems/will_paginate-2.2.2/.specification</filename>
    </modified>
    <modified>
      <diff>@@ -56,12 +56,15 @@ files:
 - youtube-g.gemspec
 has_rdoc: true
 homepage: http://youtube-g.rubyforge.org/
+licenses: []
+
 post_install_message: 
 rdoc_options: 
 - --main
 - README.txt
 require_paths: 
 - bin
+- bin
 - lib
 required_ruby_version: !ruby/object:Gem::Requirement 
   requirements: 
@@ -78,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
 requirements: []
 
 rubyforge_project: 
-rubygems_version: 1.3.1
+rubygems_version: 1.3.5
 signing_key: 
 specification_version: 2
 summary: An object-oriented Ruby wrapper for the YouTube GData API</diff>
      <filename>vendor/gems/youtube-g-0.4.9.9/.specification</filename>
    </modified>
  </modified>
  <removed type="array">
    <removed>
      <filename>config/initializers/file_column_settings.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/CHANGELOG</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/README</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/Rakefile</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/TODO</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/init.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/lib/file_column.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/lib/file_column_helper.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/lib/file_compat.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/lib/magick_file_column.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/lib/rails_file_column.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/lib/test_case.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/lib/validations.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/abstract_unit.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/connection.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/file_column_helper_test.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/file_column_test.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/fixtures/entry.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/fixtures/invalid-image.jpg</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/fixtures/kerb.jpg</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/fixtures/mysql.sql</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/fixtures/schema.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/fixtures/skanthak.png</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/magick_test.rb</filename>
    </removed>
    <removed>
      <filename>vendor/plugins/file_column/test/magick_view_only_test.rb</filename>
    </removed>
  </removed>
  <parents type="array">
    <parent>
      <id>959cb0f5f5033c3ce7e7d94a177724df53ac9226</id>
    </parent>
  </parents>
  <author>
    <name>Matthew Peychich</name>
    <email>mpeychich@goldstar-matthew-peychich.gateway.2wire.net</email>
  </author>
  <url>http://github.com/stevenbristol/lovd-by-less/commit/26e79a77ca5d1441a1a9e72f0568786459a7c2d5</url>
  <id>26e79a77ca5d1441a1a9e72f0568786459a7c2d5</id>
  <committed-date>2009-10-09T18:29:54-07:00</committed-date>
  <authored-date>2009-10-09T18:29:54-07:00</authored-date>
  <message>cleaning up the migration, removing support for backward migrations and added an upgrade notes file</message>
  <tree>64cb8dffe80dd9c908999d94ef3f828c8a618796</tree>
  <committer>
    <name>Matthew Peychich</name>
    <email>mpeychich@goldstar-matthew-peychich.gateway.2wire.net</email>
  </committer>
</commit>
