<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array">
    <added>
      <filename>app/models/participation.rb</filename>
    </added>
    <added>
      <filename>db/migrate/20081019120723_create_participations.rb</filename>
    </added>
    <added>
      <filename>spec/fixtures/participations.yml</filename>
    </added>
    <added>
      <filename>spec/models/participation_spec.rb</filename>
    </added>
  </added>
  <modified type="array">
    <modified>
      <diff>@@ -1,2 +1,9 @@
 class Meeting &lt; ActiveRecord::Base
+  
+  has_many    :participations,  :dependent =&gt; :destroy
+  has_many    :participants,    :through =&gt; :participations, :source =&gt; :person
+
+  validates_presence_of :date
+  validates_presence_of :venue
+  
 end</diff>
      <filename>app/models/meeting.rb</filename>
    </modified>
    <modified>
      <diff>@@ -9,7 +9,7 @@
 #
 # It's strongly recommended to check this file into your version control system.
 
-ActiveRecord::Schema.define(:version =&gt; 20081018210850) do
+ActiveRecord::Schema.define(:version =&gt; 20081019120723) do
 
   create_table &quot;bj_config&quot;, :primary_key =&gt; &quot;bj_config_id&quot;, :force =&gt; true do |t|
     t.text &quot;hostname&quot;
@@ -64,6 +64,13 @@ ActiveRecord::Schema.define(:version =&gt; 20081018210850) do
     t.datetime &quot;updated_at&quot;
   end
 
+  create_table &quot;participations&quot;, :force =&gt; true do |t|
+    t.integer  &quot;person_id&quot;,  :limit =&gt; 11
+    t.integer  &quot;meeting_id&quot;, :limit =&gt; 11
+    t.datetime &quot;created_at&quot;
+    t.datetime &quot;updated_at&quot;
+  end
+
   create_table &quot;people&quot;, :force =&gt; true do |t|
     t.string   &quot;username&quot;
     t.string   &quot;name&quot;</diff>
      <filename>db/schema.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>39fbf0dfc248e39744200e20279175d2bc31818f</id>
    </parent>
  </parents>
  <author>
    <name>Michael MacDonald</name>
    <email>michaelm@amc.org.au</email>
  </author>
  <url>http://github.com/artpop/crc_site/commit/d20c783c4dfd3c6c6b3e753d72b53cc173b7c8fc</url>
  <id>d20c783c4dfd3c6c6b3e753d72b53cc173b7c8fc</id>
  <committed-date>2008-10-19T07:13:39-07:00</committed-date>
  <authored-date>2008-10-19T07:13:39-07:00</authored-date>
  <message>added a particaption has many through relationship for meetings and people</message>
  <tree>fb43107a52853fb6faafcb8beb001decbf34f87c</tree>
  <committer>
    <name>Michael MacDonald</name>
    <email>michaelm@amc.org.au</email>
  </committer>
</commit>
