Add scope for boston

This commit is contained in:
rebuilt 2023-02-27 12:35:44 -08:00
parent ae6d7151b3
commit 5d07f06a65

View file

@ -14,4 +14,6 @@ class District < ApplicationRecord
before_save do
self.slug ||= name.parameterize
end
scope :boston, -> { where(name: 'Boston') }
end