public
Description: Poll plugin for the Calcium2 cms.
Clone URL: git://github.com/azabaj/c2_poll.git
Added polls_posts table to migration template
azabaj (author)
Tue Jun 24 03:07:47 -0700 2008
commit  11ec0013715431169ea0835c910282f40d65fb40
tree    09826dd990fc6b54ef428667a63dd21ba7c32968
parent  c516e69f9abfd48de44334dc86b389cc2ce4cdea
...
38
39
40
 
 
 
 
 
 
 
41
42
43
44
45
 
 
46
47
...
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
0
@@ -38,10 +38,19 @@ class AddC2Poll < ActiveRecord::Migration
0
     
0
     # Index for poll_answers
0
     add_index :poll_answers, :poll_id
0
+
0
+ create_table :polls_posts, :id => false do |t|
0
+ t.column :poll_id, :integer
0
+ t.column :post_id, :integer
0
+ end
0
+ add_index :polls_posts, [:poll_id,:post_id]
0
+
0
   end
0
   
0
   def self.down
0
     drop_table :polls
0
     drop_table :poll_answers
0
+
0
+ drop_table :polls_posts
0
   end
0
 end

Comments

    No one has commented yet.