class MembershipSetting < ApplicationRecord scope :active, -> { where(is_active: true) } MembershipSetting = MembershipSetting.first end