public
Rubygem
Description: A tagging plugin for Rails applications that allows for custom tagging along dynamic contexts.
Homepage: http://mbleigh.lighthouseapp.com/projects/10116-acts-as-taggable-on
Clone URL: git://github.com/mbleigh/acts-as-taggable-on.git
Click here to lend your support to: acts-as-taggable-on and make a donation at www.pledgie.com !
Consolidated migrations so that duplicate timestamps aren't created. [#12 
status:resolved]
mbleigh (author)
Wed Jun 11 11:24:11 -0700 2008
commit  8113f9a98747fee8c6d14eb788508ebf6bd1d5ea
tree    c072045779688775ccf900035ef76d32101c35ec
parent  1879e96e133ac3f45c7105d204be247c7b933530
...
2
3
4
5
6
 
7
8
...
2
3
4
 
 
5
6
7
0
@@ -2,7 +2,6 @@ class ActsAsTaggableOnMigrationGenerator < Rails::Generator::Base
0
   def manifest 
0
     record do |m| 
0
       m.migration_template 'migration.rb', 'db/migrate', :migration_file_name => "acts_as_taggable_on_migration"
0
-      m.migration_template 'add_users_migration.rb', 'db/migrate', :migration_file_name => "add_users_to_acts_as_taggable_on_migration"
0
-    end 
0
+    end
0
   end
0
 end
...
18
19
20
 
 
 
21
22
23
24
25
 
 
 
26
27
...
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
0
@@ -18,10 +18,16 @@ class ActsAsTaggableOnMigration < ActiveRecord::Migration
0
     
0
     add_index :taggings, :tag_id
0
     add_index :taggings, [:taggable_id, :taggable_type, :context]
0
+    
0
+    add_column :taggings, :tagger_id, :integer
0
+    add_column :taggings, :tagger_type, :string
0
   end
0
   
0
   def self.down
0
     drop_table :taggings
0
     drop_table :tags
0
+    
0
+    remove_column :taggings, :tagger_type
0
+    remove_column :taggings, :tagger_id
0
   end
0
 end

Comments