12 lines
211 B
Ruby
12 lines
211 B
Ruby
module Main
|
|
module Repos
|
|
class ReactionRepo < Adamantium::DB::Repo[:reactions]
|
|
commands :create
|
|
|
|
def count(post_id:)
|
|
reactions.where(post_id: post_id).count
|
|
end
|
|
end
|
|
end
|
|
end
|