Commit
4de02a20556018c58a13de42b258c3b2e779ce09
Exists in
staging
and in
26 other branches
angular_poc, api-article-archived, api-homepage, api_visitor, article-readonly, caching-rails4, captcha_serpro_plugin, comment_paragraph_api, comments_api_reply, content-manager-hostspot, environment-api, export-comment-paragraph, fix_event_date_issue, fix_multitenancy, fix_profile_wall, fix_string_downcase_and_upcase, fix_upload_files_on_development_environment, json_cookie_serializer, login-captcha, master, new_security, new_video_plugin, pg_search_rank, production, resend_confirmation_email, tasks_keep_filter_params
Add migration to remove broken profile suggestions
|
| @@ -0,0 +1,9 @@ |
| @@ -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 |