feat: Portal and Category public APIs (#4946)

This commit is contained in:
Tejaswini Chile
2022-07-05 17:15:38 +05:30
committed by GitHub
parent ae59d0a343
commit 029209a634
18 changed files with 154 additions and 9 deletions

View File

@@ -39,4 +39,6 @@ class Portal < ApplicationRecord
validates :slug, presence: true, uniqueness: true
accepts_nested_attributes_for :members
scope :active, -> { where(archived: false) }
end