Skip to content

Commit

Permalink
Remove components associated with consultations
Browse files Browse the repository at this point in the history
  • Loading branch information
entantoencuanto committed Sep 12, 2024
1 parent 66a00e3 commit 8a74be0
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/tasks/consultations.rake
Original file line number Diff line number Diff line change
Expand Up @@ -22,5 +22,6 @@ namespace :consultations do
action_log_sql_deletion_by_space_type = "delete from decidim_action_logs where participatory_space_type ILIKE '#{expression}'"
ActiveRecord::Base.connection.execute(action_log_sql_deletion_by_resource_type)
ActiveRecord::Base.connection.execute(action_log_sql_deletion_by_space_type)
Decidim::Component.where("participatory_space_type ILIKE ?", expression).destroy_all
end
end

0 comments on commit 8a74be0

Please sign in to comment.