server list looks like something
This commit is contained in:
12
web/db/migrate/20160220084417_create_servers.rb
Normal file
12
web/db/migrate/20160220084417_create_servers.rb
Normal 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
|
||||
@@ -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
|
||||
Reference in New Issue
Block a user