summaryrefslogtreecommitdiff
path: root/db/migrate/20151224123230_rename_emojis.rb
diff options
context:
space:
mode:
Diffstat (limited to 'db/migrate/20151224123230_rename_emojis.rb')
-rw-r--r--db/migrate/20151224123230_rename_emojis.rb15
1 files changed, 0 insertions, 15 deletions
diff --git a/db/migrate/20151224123230_rename_emojis.rb b/db/migrate/20151224123230_rename_emojis.rb
deleted file mode 100644
index f1e4b1fe181..00000000000
--- a/db/migrate/20151224123230_rename_emojis.rb
+++ /dev/null
@@ -1,15 +0,0 @@
-# Migration type: online without errors (works on previous version and new one)
-class RenameEmojis < ActiveRecord::Migration[4.2]
- def up
- # Renames aliases to main names
- execute("UPDATE notes SET note ='thumbsup' WHERE is_award = true AND note = '+1'")
- execute("UPDATE notes SET note ='thumbsdown' WHERE is_award = true AND note = '-1'")
- execute("UPDATE notes SET note ='poop' WHERE is_award = true AND note = 'shit'")
- end
-
- def down
- execute("UPDATE notes SET note ='+1' WHERE is_award = true AND note = 'thumbsup'")
- execute("UPDATE notes SET note ='-1' WHERE is_award = true AND note = 'thumbsdown'")
- execute("UPDATE notes SET note ='shit' WHERE is_award = true AND note = 'poop'")
- end
-end