20151019111551_fix_build_tags.rb 279 Bytes
Newer Older
1
class FixBuildTags < ActiveRecord::Migration[4.2]
2
  def up
Kamil Trzcinski's avatar
Kamil Trzcinski committed
3 4
    execute("UPDATE taggings SET taggable_type='CommitStatus' WHERE taggable_type='Ci::Build'")
  end
5 6 7 8

  def down
    execute("UPDATE taggings SET taggable_type='Ci::Build' WHERE taggable_type='CommitStatus'")
  end
Kamil Trzcinski's avatar
Kamil Trzcinski committed
9
end