This commit is contained in:
2026-06-12 15:40:12 -04:00
commit 521653e5de
53 changed files with 8635 additions and 0 deletions
@@ -0,0 +1,11 @@
class CreateLocalNetworks < ActiveRecord::Migration[7.2]
def change
create_table :local_networks do |t|
t.string :name
t.string :subnet
t.string :tld
t.timestamps
end
end
end
@@ -0,0 +1,14 @@
class CreateMachines < ActiveRecord::Migration[7.2]
def change
create_table :machines do |t|
t.string :name
t.string :domain
t.string :local_ip_octet
t.string :tailscale_ip
t.belongs_to :local_network
t.timestamps
end
end
end
@@ -0,0 +1,10 @@
class CreateServiceTypes < ActiveRecord::Migration[7.2]
def change
create_table :service_types do |t|
t.string :name
t.string :hex_color
t.timestamps
end
end
end
@@ -0,0 +1,16 @@
class CreateServices < ActiveRecord::Migration[7.2]
def change
create_table :services do |t|
t.string :name
t.string :subdomain
t.string :port
t.string :url_path
t.integer :position
t.belongs_to :machine
t.belongs_to :service_type
t.timestamps
end
end
end