Skip to content

Commit

Permalink
update accounts/user.ex to use Ecto p.55 of #55
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Jan 22, 2019
1 parent 6a372a6 commit 9db18f7
Showing 1 changed file with 10 additions and 2 deletions.
12 changes: 10 additions & 2 deletions rumbl/lib/rumbl/accounts/user.ex
Original file line number Diff line number Diff line change
@@ -1,4 +1,12 @@
defmodule Rumbl.Accounts.User do
defstruct [:id, :name, :username]
defmodule Rumbl.Accounts.User do
use Ecto.Schema
import Ecto.Changeset

schema "users" do
field :name, :string
field :username, :string

timestamps()
end
end

0 comments on commit 9db18f7

Please sign in to comment.