Initial checkin of project. Creates sites and goes to dashboard

This commit is contained in:
Kyle Drake 2013-05-24 00:47:50 -07:00
parent d1d1d61f18
commit b2bdf32275
26 changed files with 540 additions and 0 deletions

7
models/server.rb Normal file
View file

@ -0,0 +1,7 @@
class Server < Sequel::Model
one_to_many :sites
def self.with_slots_available
where{slots_available > 0}.first
end
end