Files
terminus/app/relations/firmware.rb
T
Brooke Kuhlmann f97c7415c4 Updated firmwares table as firmware
Necessary to reduce confusion and be consistent with existing tables.

Milestone: minor
2025-09-08 16:47:18 -06:00

15 lines
310 B
Ruby

# frozen_string_literal: true
module Terminus
module Relations
# The firmware relation.
class Firmware < DB::Relation
schema :firmware, infer: true
def by_version_desc
order Sequel.desc(Sequel.function(:string_to_array, :version, ".").cast("int[]"))
end
end
end
end