1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-12 09:48:31 +02:00
neocities/models/server.rb

7 lines
No EOL
129 B
Ruby

class Server < Sequel::Model
one_to_many :sites
def self.with_slots_available
where{slots_available > 0}.first
end
end