diff options
author | Valery Sizov <valery@gitlab.com> | 2015-11-05 17:41:03 +0300 |
---|---|---|
committer | Valery Sizov <valery@gitlab.com> | 2015-11-05 17:47:25 +0300 |
commit | aecc4376e20b3ad23662f6181a776ac5747baa06 (patch) | |
tree | 47d4932661400a006d8373400e71295108873d51 /db/migrate/20151019111551_fix_build_tags.rb | |
parent | 4f574388fc8594ec6f6e9d719f524912d17c4059 (diff) |
make migrations reversible
Diffstat (limited to 'db/migrate/20151019111551_fix_build_tags.rb')
-rw-r--r-- | db/migrate/20151019111551_fix_build_tags.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/db/migrate/20151019111551_fix_build_tags.rb b/db/migrate/20151019111551_fix_build_tags.rb index 84b142183f8..299a24b0a7c 100644 --- a/db/migrate/20151019111551_fix_build_tags.rb +++ b/db/migrate/20151019111551_fix_build_tags.rb @@ -1,5 +1,9 @@ class FixBuildTags < ActiveRecord::Migration - def change + def up execute("UPDATE taggings SET taggable_type='CommitStatus' WHERE taggable_type='Ci::Build'") end + + def down + execute("UPDATE taggings SET taggable_type='Ci::Build' WHERE taggable_type='CommitStatus'") + end end |