<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -1,10 +1,26 @@
-f = Forum.create(
+Forum.delete_all
+Topic.delete_all
+Post.delete_all
+
+admin = User.find_by_login(&quot;admin&quot;)
+
+forum = Forum.create(
   :name =&gt; &quot;Making Music&quot;,
   :description =&gt; &quot;Talk about how you do it, how you want to do it, and how you feel about it.&quot;
 )
 
-t = f.topics.create(
-  :user_id =&gt; 1,
+topic = admin.topics.create(
   :title =&gt; &quot;Music and passion&quot;,
   :body =&gt; &quot;alonetone rock!&quot;
-).save(false)
\ No newline at end of file
+)
+
+topic.forum = forum
+topic.save(false)
+
+post = admin.posts.create(
+  :body =&gt; &quot;keep moving on&quot;
+)
+
+post.topic = topic
+post.forum = forum
+post.save(false)
\ No newline at end of file</diff>
      <filename>db/fixtures/forums.rb</filename>
    </modified>
    <modified>
      <diff>@@ -3,7 +3,9 @@ namespace :db do
   desc &quot;Loads initial database models for the current environment.&quot;
   task :populate =&gt; :environment do
     require 'active_record/fixtures'
-    
+
+    puts &quot;Populating data&quot;
+
     # load .yml files
     Dir[File.join(RAILS_ROOT, 'db', 'fixtures', '*.yml')].sort.each { |fixture| 
       puts &quot;Loading #{fixture}&quot;
@@ -11,6 +13,9 @@ namespace :db do
     }
     
     # load .rb files
-    Dir[File.join(RAILS_ROOT, 'db', 'fixtures', '*.rb')].sort.each { |fixture| load fixture }
+    Dir[File.join(RAILS_ROOT, 'db', 'fixtures', '*.rb')].sort.each { |fixture| 
+      puts &quot;Loading #{fixture}&quot;
+      load fixture
+    }
   end
 end
\ No newline at end of file</diff>
      <filename>lib/tasks/populate.rake</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>c123497fc35e7d41fcbb9a8169043fec2619bc91</id>
    </parent>
  </parents>
  <author>
    <name>Tien Dung</name>
    <email>dungtn@gmail.com</email>
  </author>
  <url>http://github.com/tiendung/alonetone/commit/3aa8b3042208b7e6166fe0d9fe159d4681a85691</url>
  <id>3aa8b3042208b7e6166fe0d9fe159d4681a85691</id>
  <committed-date>2008-10-13T19:42:57-07:00</committed-date>
  <authored-date>2008-10-13T19:42:57-07:00</authored-date>
  <message>better data polulation</message>
  <tree>f95185b6f1bd8b1476287503a0401eaac3014071</tree>
  <committer>
    <name>Tien Dung</name>
    <email>dungtn@gmail.com</email>
  </committer>
</commit>
