Commit
64fddd5375fd03b1b9f49e487e05cb01a5968ded
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
profile-suggestions: add migration to create initial suggestions
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +class BootstrapProfileSuggestions < ActiveRecord::Migration |
| |
2
| + def up |
| |
3
| + ProfileSuggestion.generate_all_profile_suggestions |
| |
4
| + end |
| |
5
| + |
| |
6
| + def down |
| |
7
| + ProfileSuggestion.delete_all |
| |
8
| + end |
| |
9
| +end |