Created
October 20, 2016 17:06
-
-
Save Hajto/560e97503011b5b8621dd21589b369ba to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Kpsz.Pressence do | |
use Kpsz.Web, :model | |
schema "pressences" do | |
field :state, Kpsz.PressenceState | |
has_one :user, Kpsz.User, foreign_key: "user_id" | |
belongs_to :event, Kpsz.Event | |
timestamps() | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment