Commit
ac727c4738ac6759b4c97c4c68382f535ffba258
Exists in
master
and in
47 other branches
add_sisp_to_chef, add_super_archives_plugin, automates_core_packing, backup_not_prod, changes_in_buttons_on_content_panel, colab_automated_login, colab_spb_plugin_recipe, colab_widgets_settings, disable_email_dev, fix_breadcrumbs_position, fix_categories_software_link, fix_edit_institution, fix_edit_software_with_another_license, fix_get_license_info, fix_gitlab_assets_permission, fix_list_style_inside_article, fix_list_style_on_folder_elements, fix_members_pagination, fix_merge_request_url, fix_models_translations, fix_no_license, fix_software_block_migration, fix_software_communities_translations, fix_software_communities_unit_test, fix_style_create_institution_admin_panel, fix_superarchives_imports, fix_sym_links_noosfero, header_fix, lxc_settings, margin_fix, mezuro_cookbook, refactor_download_block, remove_broken_theme, remove_secondary_email_from_user, remove_sisp_buttons, sisp_catalog_header, sisp_dev_master, software_catalog_style_fix, software_communities_html_refactor, software_infos_api, spb_to_rails4, stable-4.1, stable-4.2, theme_header, theme_javascript_refactory, thread_dropdown, update_search_by_categories
Merge branch 'fix_remove_software_without_communities' into 'master'
Fix remove software without communities
A migraçao antiga nao resolveu esse problema, eu corrigi com essa nova e apaguei a antiga!
See merge request !112
| @@ -0,0 +1,9 @@ |
| @@ -0,0 +1,9 @@ |
| |
1
| +class RemoveSoftwareWithoutCommunity < ActiveRecord::Migration |
| |
2
| + def up |
| |
3
| + execute('DELETE FROM software_infos where community_id IS NULL;') |
| |
4
| + end |
| |
5
| + |
| |
6
| + def down |
| |
7
| + say"This migration can't be reverted" |
| |
8
| + end |
| |
9
| +end |