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

View File

@@ -0,0 +1,12 @@
class CreateServers < ActiveRecord::Migration
def change
create_table :servers do |t|
t.string :name, null: false
t.string :namehash, null: false
t.integer :operating_system_id, null: false
t.boolean :initialized, null: false, default: false
t.string :hostname
t.timestamps null: false
end
end
end

View File

@@ -0,0 +1,8 @@
class CreateOperatingSystems < ActiveRecord::Migration
def change
create_table :operating_systems do |t|
t.string :name, null: false
t.timestamps null: false
end
end
end