Add scope for boston

pull/1/head
rebuilt 3 years ago
parent ae6d7151b3
commit 5d07f06a65

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

Loading…
Cancel
Save