Ability to remove posts from trips

This commit is contained in:
2023-06-15 20:03:10 +10:00
parent 2eaf1ddf88
commit 1f56ff0e49
7 changed files with 2344 additions and 16 deletions

View File

@@ -2,6 +2,10 @@ module Admin
module Repos
class PostTripRepo < Adamantium::Repo[:post_trips]
commands :create
def remove(trip_id:, post_id:)
post_trips.where(trip_id: trip_id, post_id: post_id).delete
end
end
end
end