<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -2,4 +2,6 @@ class User &lt; ActiveRecord::Base
   acts_as_authentic
   
   validates_presence_of :name
+  
+  has_many :blog_posts
 end</diff>
      <filename>app/models/user.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,4 +1,6 @@
 ActionController::Routing::Routes.draw do |map|
+  map.resources :blog_posts
+
   map.resources :pages
 
   map.resources :users</diff>
      <filename>config/routes.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,19 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20090909233823) do
+ActiveRecord::Schema.define(:version =&gt; 20091001005159) do
+
+  create_table &quot;blog_posts&quot;, :force =&gt; true do |t|
+    t.integer  &quot;user_id&quot;
+    t.string   &quot;title&quot;
+    t.string   &quot;url&quot;
+    t.text     &quot;body&quot;
+    t.text     &quot;body_html&quot;
+    t.integer  &quot;comments_count&quot;,  :default =&gt; 0
+    t.integer  &quot;last_comment_id&quot;
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
 
   create_table &quot;pages&quot;, :force =&gt; true do |t|
     t.string   &quot;title&quot;
@@ -34,14 +46,14 @@ ActiveRecord::Schema.define(:version =&gt; 20090909233823) do
 
   create_table &quot;users&quot;, :force =&gt; true do |t|
     t.string   &quot;name&quot;
-    t.string   &quot;email&quot;,                              :null =&gt; false
-    t.string   &quot;crypted_password&quot;,                   :null =&gt; false
-    t.string   &quot;password_salt&quot;,                      :null =&gt; false
-    t.string   &quot;persistence_token&quot;,                  :null =&gt; false
-    t.string   &quot;single_access_token&quot;,                :null =&gt; false
-    t.string   &quot;perishable_token&quot;,                   :null =&gt; false
-    t.integer  &quot;login_count&quot;,         :default =&gt; 0, :null =&gt; false
-    t.integer  &quot;failed_login_count&quot;,  :default =&gt; 0, :null =&gt; false
+    t.string   &quot;email&quot;,                                  :null =&gt; false
+    t.string   &quot;crypted_password&quot;,                       :null =&gt; false
+    t.string   &quot;password_salt&quot;,                          :null =&gt; false
+    t.string   &quot;persistence_token&quot;,                      :null =&gt; false
+    t.string   &quot;single_access_token&quot;,                    :null =&gt; false
+    t.string   &quot;perishable_token&quot;,                       :null =&gt; false
+    t.integer  &quot;login_count&quot;,         :default =&gt; 0,     :null =&gt; false
+    t.integer  &quot;failed_login_count&quot;,  :default =&gt; 0,     :null =&gt; false
     t.datetime &quot;last_request_at&quot;
     t.datetime &quot;current_login_at&quot;
     t.datetime &quot;last_login_at&quot;
@@ -50,6 +62,7 @@ ActiveRecord::Schema.define(:version =&gt; 20090909233823) do
     t.datetime &quot;created_at&quot;
     t.datetime &quot;updated_at&quot;
     t.boolean  &quot;admin&quot;
+    t.boolean  &quot;author&quot;,              :default =&gt; false
   end
 
 end</diff>
      <filename>db/schema.rb</filename>
    </modified>
    <modified>
      <diff>@@ -10,4 +10,9 @@ end
 Factory.define :admin, :parent =&gt; :user do |a|
   a.name                  'Administrator'
   a.admin                 true
+end
+
+Factory.define :author, :parent =&gt; :user do |a|
+  a.name                  'Author'
+  a.author                true
 end
\ No newline at end of file</diff>
      <filename>test/factories/user_factories.rb</filename>
    </modified>
    <modified>
      <diff>@@ -7,4 +7,6 @@ class UserTest &lt; ActiveSupport::TestCase
   
   should_be_authentic
   should_validate_presence_of :name
+  
+  should_have_many :blog_posts
 end</diff>
      <filename>test/unit/user_test.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>3ef47033b32e36d69fbc90190447b44c15994fd7</id>
    </parent>
  </parents>
  <author>
    <name>jdpace</name>
    <email>jared@codewordstudios.com</email>
  </author>
  <url>http://github.com/jdpace/hubbub/commit/25954c09ffa044a139ec241ed42e08c35bb2fa41</url>
  <id>25954c09ffa044a139ec241ed42e08c35bb2fa41</id>
  <committed-date>2009-09-30T18:13:20-07:00</committed-date>
  <authored-date>2009-09-30T18:13:20-07:00</authored-date>
  <message>Add a simple BlogPost model</message>
  <tree>4c021d3ddacd263c6a3085f45c0d0b40fcd84e47</tree>
  <committer>
    <name>jdpace</name>
    <email>jared@codewordstudios.com</email>
  </committer>
</commit>
