Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
-- +micrate Up
-- SQL in section 'Up' is executed when this migration is applied

ALTER TABLE "sys" ADD COLUMN IF NOT EXISTS approval BOOLEAN DEFAULT FALSE;

-- +micrate Down
-- SQL section 'Down' is executed when this migration is rolled back

ALTER TABLE "sys" DROP COLUMN IF EXISTS approval;
1 change: 1 addition & 0 deletions src/placeos-models/control_system.cr
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
require "time"

Check warning on line 1 in src/placeos-models/control_system.cr

View workflow job for this annotation

GitHub Actions / Ameba

Lint/Formatting

Use built-in formatter to format this source
Raw output
> require "time"
  ^
require "uri"
require "future"

Expand Down Expand Up @@ -34,6 +34,7 @@
attribute type : String?
attribute capacity : Int32 = 0
attribute map_id : String?
attribute approval : Bool = false

# Array of URLs to images for a system
attribute images : Array(String) = -> { [] of String }
Expand Down
Loading