2016-06-16 23:09:34 +05:30
|
|
|
# rubocop:disable all
|
2014-09-02 18:07:02 +05:30
|
|
|
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
|