Commit 4de02a20556018c58a13de42b258c3b2e779ce09

Authored by Arthur Esposte
Committed by Daniela Feitosa
1 parent 4aa45dd8

Add migration to remove broken profile suggestions

db/migrate/20150507204849_remove_broken_profile_suggestions.rb 0 → 100644
... ... @@ -0,0 +1,9 @@
  1 +class RemoveBrokenProfileSuggestions < ActiveRecord::Migration
  2 + def up
  3 + execute("DELETE FROM profile_suggestions WHERE suggestion_id NOT IN (SELECT id from profiles)")
  4 + end
  5 +
  6 + def down
  7 + say "this migration can't be reverted"
  8 + end
  9 +end
... ...