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
| @@ -61,7 +61,7 @@ GEM | @@ -61,7 +61,7 @@ GEM | ||
| 61 | database_cleaner (1.2.0) | 61 | database_cleaner (1.2.0) |
| 62 | diff-lcs (1.1.3) | 62 | diff-lcs (1.1.3) |
| 63 | erubis (2.7.0) | 63 | erubis (2.7.0) |
| 64 | - eventmachine (0.12.11) | 64 | + eventmachine (0.12.10) |
| 65 | fast_gettext (0.6.8) | 65 | fast_gettext (0.6.8) |
| 66 | ffi (1.0.11) | 66 | ffi (1.0.11) |
| 67 | gherkin (2.4.21) | 67 | gherkin (2.4.21) |
db/migrate/20140808185510_update_default_tagging_context.rb
0 → 100644
| @@ -0,0 +1,11 @@ | @@ -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 |