Commit
2baa55a04fc633f84ec55cafe183ef4596e97ca8
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
Clearing theme for profiles with theme "default"
This way they will actually be displayed using the environment's theme
instead of the theme called "default". In multi-environment setups the
environments do not use the "default" theme.
(and hell yeah from now on we are going to use timestamp in migration file
names)
(ActionItem1432)
|
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
|
| |
1
| +class ClearDefaultThemeFromProfiles < ActiveRecord::Migration |
|
| |
2
| + def self.up |
|
| |
3
| + execute("update profiles set theme = null where theme = 'default'") |
|
| |
4
| + end |
|
| |
5
| + |
|
| |
6
| + def self.down |
|
| |
7
| + say "WARNING: cannot undo this migration" |
|
| |
8
| + end |
|
| |
9
| +end |