Commit
c3b96cd53ebdb6a61e54f1d5cedec554ef8f3834
Exists in
master
and in
21 other branches
add_you_are_here_breadcrumbs_label, backup_not_prod, button_suspension_points_remove, disable_email_dev, fix_edit_institution, fix_edit_software_with_another_license, fix_list_style_inside_article, fix_models_translations, fix_no_license, fix_software_api, fix_software_block_migration, fix_validations_and_tests, header_fix, mailinglist_page_title, margin_fix, remove_secondary_email_from_user, sisp_dev_master, software_catalog_style_fix, stable-4.x, thread_dropdown, update_software_api
| @@ -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 |