2016-06-09 12:39:16 +00:00
|
|
|
# rubocop:disable all
|
2014-07-29 15:23:18 +00:00
|
|
|
class MigrateProjectTags < ActiveRecord::Migration
|
|
|
|
def up
|
|
|
|
ActsAsTaggableOn::Tagging.where(taggable_type: 'Project', context: 'labels').update_all(context: 'tags')
|
|
|
|
end
|
|
|
|
|
|
|
|
def down
|
|
|
|
ActsAsTaggableOn::Tagging.where(taggable_type: 'Project', context: 'tags').update_all(context: 'labels')
|
|
|
|
end
|
|
|
|
end
|