Commit 5db13f3286b8fb32f856ee37157d726b3487cc35
Exists in
theme-brasil-digital-from-staging
and in
9 other branches
Merge branch 'rails3' into rails3_stable
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 | ... | ... |