Skip to content

Commit

Permalink
Add a type definition for PinnedDevice
Browse files Browse the repository at this point in the history
  • Loading branch information
joshk committed Mar 5, 2025
1 parent 526b026 commit 8bba3b2
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/nerves_hub/devices/pinned_device.ex
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,8 @@ defmodule NervesHub.Devices.PinnedDevice do
alias NervesHub.Devices.Device
alias NervesHub.Devices.PinnedDevice

@type t :: %__MODULE__{}

@required [:user_id, :device_id]
schema "pinned_devices" do
belongs_to(:user, User)
Expand Down

0 comments on commit 8bba3b2

Please sign in to comment.