Commit
4febc283c1e9aafdcc755454c1acbad38475daf6
Exists in
master
and in
18 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_members_pagination, fix_models_translations, fix_no_license, fix_software_block_migration, fix_validations_and_tests, header_fix, margin_fix, remove_secondary_email_from_user, sisp_dev_master, software_catalog_style_fix, thread_dropdown
Remove softwre with nil community.
| @@ -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 |