Add writing role for some moderation classes, update verification method.

This commit is contained in:
Fosco Marotto
2021-02-11 18:34:04 -05:00
parent 5a5150757e
commit 7a2594e105
6 changed files with 33 additions and 4 deletions

View File

@@ -18,4 +18,10 @@ class ReportNote < ApplicationRecord
scope :latest, -> { reorder(created_at: :desc) }
validates :content, presence: true, length: { maximum: 500 }
connects_to database: {
writing: :master,
reading: :master
}
end