<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,6 +1,6 @@
 module Database
   class &lt;&lt; self
-    CORE = [Activity, Article, Configuration, Plugin, User]
+    CORE = Dir.glob(&quot;app/models/*.rb&quot;).collect { |s| Class.const_get(s.split(&quot;/&quot;).last.gsub(&quot;.rb&quot;, &quot;&quot;).split(&quot;_&quot;).collect { |w| w.capitalize }.join(&quot;&quot;)) }
     
     # This provides a helper method for data migration for plugins - we can then update this to use non-destructive migrations at a later date and existing plugins won't need to change
     def migrate(klass)
@@ -11,5 +11,10 @@ module Database
       # Execute auto migrations for now
       klass.auto_migrate!
     end
+    
+    # This does the initial auto migration of all core classes
+    def initial_setup
+      CORE.each { |c| c.auto_migrate! }
+    end
   end
 end
\ No newline at end of file</diff>
      <filename>lib/database.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>8ed62ce2ea67583e90ba0eb1fbd2d478b712b6cb</id>
    </parent>
  </parents>
  <author>
    <name>El Draper</name>
    <email>el@eldiablo.co.uk</email>
  </author>
  <url>http://github.com/jf/feather/commit/32187e0bc4d0d45ed19e32c8d06069561f4f8aa3</url>
  <id>32187e0bc4d0d45ed19e32c8d06069561f4f8aa3</id>
  <committed-date>2008-06-11T13:38:29-07:00</committed-date>
  <authored-date>2008-06-11T13:38:29-07:00</authored-date>
  <message>added a db task to auto migrate all core classes for feather (for initial database setup)</message>
  <tree>7b554490f99c85ca9601a0b84888d38090d39697</tree>
  <committer>
    <name>El Draper</name>
    <email>el@eldiablo.co.uk</email>
  </committer>
</commit>
