Adds down SQL statements to badge icons migration

Adds down SQL statements to badge icons migration

follows up on a571efba

diff --git a/db/migrate/20190716014949_rename_deprecated_badge_icons.rb b/db/migrate/20190716014949_rename_deprecated_badge_icons.rb
index e7eed38..73540dd 100644
--- a/db/migrate/20190716014949_rename_deprecated_badge_icons.rb
+++ b/db/migrate/20190716014949_rename_deprecated_badge_icons.rb
@@ -7,5 +7,7 @@ class RenameDeprecatedBadgeIcons < ActiveRecord::Migration[5.2]
   end
 
   def down
+    execute "UPDATE badges SET icon = 'fa-clock-o' WHERE icon = 'far-clock'"
+    execute "UPDATE badges SET icon = 'fa-eye' WHERE icon = 'far-eye'"
   end
 end

GitHub sha: 98866ca0

1 Like