Commit ce1288aa6e4a42ebbc00a22dac96548ffc7525af
Exists in
master
and in
22 other branches
Merge branches 'rails3' and 'AI3268_template_management' into AI3268_template_management
Showing
2 changed files
with
12 additions
and
1 deletions
Show diff stats
Gemfile.lock
db/migrate/20140808185510_update_default_tagging_context.rb
0 → 100644
| ... | ... | @@ -0,0 +1,11 @@ |
| 1 | +class UpdateDefaultTaggingContext < ActiveRecord::Migration | |
| 2 | + | |
| 3 | + def self.up | |
| 4 | + ActsAsTaggableOn::Tagging.where(:taggable_type => Article, :context => nil).update_all(:context => 'tags') | |
| 5 | + end | |
| 6 | + | |
| 7 | + def self.down | |
| 8 | + ActsAsTaggableOn::Tagging.where(:taggable_type => Article, :context => 'tags').update_all(:context => nil) | |
| 9 | + end | |
| 10 | + | |
| 11 | +end | ... | ... |