Move emoji reaction limitation constraints

This commit is contained in:
KMY 2023-03-08 16:31:22 +09:00
parent dcf52daa9b
commit 47bedd20ca
6 changed files with 21 additions and 5 deletions

View file

@ -17,6 +17,9 @@
class EmojiReaction < ApplicationRecord
include Paginable
EMOJI_REACTION_LIMIT = 32767
EMOJI_REACTION_PER_ACCOUNT_LIMIT = 5
update_index('statuses', :status)
belongs_to :account, inverse_of: :emoji_reactions