debian-mirror-gitlab/db/migrate/20140729145339_migrate_project_tags.rb
2019-02-15 15:39:39 +05:30

10 lines
311 B
Ruby

class MigrateProjectTags < ActiveRecord::Migration[4.2]
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