Added migration for device proxy column

This will allow devices to be configured to proxy to Core if desired.

Milestone: minor
This commit is contained in:
Brooke Kuhlmann
2025-04-02 11:33:27 -06:00
parent b0676ca21b
commit 855a1f439f
2 changed files with 9 additions and 2 deletions
@@ -0,0 +1,5 @@
# frozen_string_literal: true
ROM::SQL.migration do
change { add_column :devices, :proxy, :boolean, null: false, default: false }
end
+4 -2
View File
@@ -133,7 +133,8 @@ CREATE TABLE public.devices (
height integer DEFAULT 0 NOT NULL,
setup_at timestamp without time zone,
created_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL
updated_at timestamp without time zone DEFAULT CURRENT_TIMESTAMP NOT NULL,
proxy boolean
);
@@ -228,4 +229,5 @@ SET search_path TO "$user", public;
INSERT INTO schema_migrations (filename) VALUES
('20250305150912_create_devices.rb'),
('20250324153748_create_device_logs.rb');
('20250324153748_create_device_logs.rb'),
('20250401150503_add_device_proxy_column.rb');