public
Description: Canberra Ruby Crew Site #crc
Homepage: http://canberraruby.com
Clone URL: git://github.com/artpop/crc_site.git
renamed participations to attendances
schlick (author)
Mon Oct 20 04:52:18 -0700 2008
commit  885adee13e8c066e5014c0b4be05d41248fd660e
tree    91590b9a2945b250564b2da93af77ca13d348469
parent  0ff3ae3c2346bce90961454a8edf30ba87adfd12
...
1
2
3
4
 
 
5
6
7
8
 
9
...
1
2
 
 
3
4
5
6
7
 
8
9
0
@@ -1,9 +1,9 @@
0
 class Meeting < ActiveRecord::Base
0
   
0
-  has_many    :participations,  :dependent => :destroy
0
-  has_many    :participants,    :through => :participations, :source => :person
0
+  has_many    :attendances,  :dependent => :destroy
0
+  has_many    :attendees,    :through => :attendances, :source => :person
0
 
0
   validates_presence_of :date
0
   validates_presence_of :venue
0
-  
0
+    
0
 end
...
9
10
11
12
 
 
 
 
 
 
 
 
13
14
15
...
64
65
66
67
68
69
70
71
72
73
74
75
76
...
9
10
11
 
12
13
14
15
16
17
18
19
20
21
22
...
71
72
73
 
 
 
 
 
 
 
74
75
76
0
@@ -9,7 +9,14 @@
0
 #
0
 # It's strongly recommended to check this file into your version control system.
0
 
0
-ActiveRecord::Schema.define(:version => 20081019120723) do
0
+ActiveRecord::Schema.define(:version => 20081020105053) do
0
+
0
+  create_table "attendances", :force => true do |t|
0
+    t.integer  "person_id",  :limit => 11
0
+    t.integer  "meeting_id", :limit => 11
0
+    t.datetime "created_at"
0
+    t.datetime "updated_at"
0
+  end
0
 
0
   create_table "bj_config", :primary_key => "bj_config_id", :force => true do |t|
0
     t.text "hostname"
0
@@ -64,13 +71,6 @@ ActiveRecord::Schema.define(:version => 20081019120723) do
0
     t.datetime "updated_at"
0
   end
0
 
0
-  create_table "participations", :force => true do |t|
0
-    t.integer  "person_id",  :limit => 11
0
-    t.integer  "meeting_id", :limit => 11
0
-    t.datetime "created_at"
0
-    t.datetime "updated_at"
0
-  end
0
-
0
   create_table "people", :force => true do |t|
0
     t.string   "username"
0
     t.string   "name"

Comments