server list looks like something

This commit is contained in:
Senad Uka
2016-02-20 12:36:50 +01:00
parent 3b213c855a
commit 91b72481da
25 changed files with 258 additions and 5 deletions

8
web/app/models/server.rb Normal file
View File

@@ -0,0 +1,8 @@
class Server < ActiveRecord::Base
belongs_to :operating_system
before_create :generate_hash
def generate_hash
self.namehash = SecureRandom.hex
end
end