<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>generators/update_tog_migration/templates/migration.rb</filename>
    </added>
    <added>
      <filename>generators/update_tog_migration/update_tog_migration_generator.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -7,6 +7,8 @@ Edge
 * acts_as_commentable is now installed as gem
 * Flash setted after abuse report (kudos to Andrei Erdoss)
 * Caching Tog::Config values
+* Installation template now asks about installing gems as sudo
+* new generator for creating plugin's migrations, on installation and after updates
 
 0.5.4
 ----</diff>
      <filename>CHANGELOG.md</filename>
    </modified>
    <modified>
      <diff>@@ -70,7 +70,13 @@ def install_require_gems
   gem 'thoughtbot-factory_girl', :lib =&gt; 'factory_girl'
   gem 'jackdempsey-acts_as_commentable', :lib =&gt; 'acts_as_commentable', :version =&gt; '2.0.1'
   
-  rake &quot;gems:install&quot;, :sudo =&gt; true
+  puts &quot;\n&quot;
+  if yes?(&quot;Install required gems as root? (y/n)&quot;)
+    rake &quot;gems:install&quot;, :sudo =&gt; true
+  else
+    rake &quot;gems:install&quot;, :sudo =&gt; false
+  end  
+  
 end
 
 def install_tog_core_plugins    
@@ -84,24 +90,9 @@ def install_tog_core_plugins
   puts &quot;* adding tog_tog_social routes to host app... #{&quot;added&quot;.green.bold}&quot;;
   route &quot;map.routes_from_plugin 'tog_mail'&quot;
   puts &quot;* adding tog_mail routes to host app... #{&quot;added&quot;.green.bold}&quot;;
-
-  file &quot;db/migrate/&quot; + Time.now.strftime(&quot;%Y%m%d%H%M%S&quot;) + &quot;_install_tog.rb&quot;,
-  %q{class InstallTog &lt; ActiveRecord::Migration
-      def self.up
-        migrate_plugin &quot;tog_core&quot;, 6
-        migrate_plugin &quot;tog_social&quot;, 5
-        migrate_plugin &quot;tog_mail&quot;, 2
-      end
-
-      def self.down
-        migrate_plugin &quot;tog_mail&quot;, 0 
-        migrate_plugin &quot;tog_social&quot;, 0 
-        migrate_plugin &quot;tog_core&quot;, 0
-      end
-  end
-  }     
+    
+  generate &quot;update_tog_migration&quot;
   puts &quot;* generating tog_core migration... #{&quot;generated&quot;.green.bold}&quot;;
-  
 end
 
 
@@ -180,19 +171,6 @@ def install_tog_user_plugin
 
     route &quot;map.routes_from_plugin 'tog_user'&quot;
     puts &quot;* adding routes to host app... #{&quot;added&quot;.green.bold}&quot;;
-    
-    file &quot;db/migrate/&quot; + Time.now.strftime(&quot;%Y%m%d%H%M%S&quot;) + &quot;_install_tog_user.rb&quot;,
-    %q{class InstallTogUser &lt; ActiveRecord::Migration
-        def self.up
-          migrate_plugin &quot;tog_user&quot;, 1
-        end
-
-        def self.down
-          migrate_plugin &quot;tog_user&quot;, 0 
-        end
-    end
-    }
-    puts &quot;* generating migration... #{&quot;generated&quot;.green.bold}&quot;;
   else
     silence!  
   end
@@ -231,7 +209,11 @@ end
 
 def gem_banner
   puts &lt;&lt;-eos
-We try to install the required gems as superuser so you could be asked to enter your password.
+
+We are going to install the required gems. This could be done as super user in a host-wide manner of just for your user. 
+If install this gem as superuser you could be asked to enter your password.
+
+Note: if you are using Windows, please, answer 'no'.
 
 eos
 end</diff>
      <filename>tog_template.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>df73642ad84bf2768d29eb0c79146e9a75daf389</id>
    </parent>
  </parents>
  <author>
    <name>Alberto Molpeceres</name>
    <email>alberto.molpeceres@gmail.com</email>
  </author>
  <url>http://github.com/tog/tog_core/commit/3b30aad27f906834f3d52f80474f6aeb4aa72470</url>
  <id>3b30aad27f906834f3d52f80474f6aeb4aa72470</id>
  <committed-date>2009-09-27T11:09:01-07:00</committed-date>
  <authored-date>2009-09-27T11:09:01-07:00</authored-date>
  <message>new generator for tog_plugin's migrations and asking for install as root</message>
  <tree>8c5be78768e835b2daaf4ca5b0cec68cc7271ef0</tree>
  <committer>
    <name>Alberto Molpeceres</name>
    <email>alberto.molpeceres@gmail.com</email>
  </committer>
</commit>
