lv upgrade done; home.html form needs changed; test migrations
This commit is contained in:
16
lib/something_erlang/accounts/user.ex
Normal file
16
lib/something_erlang/accounts/user.ex
Normal file
@ -0,0 +1,16 @@
|
||||
defmodule SomethingErlang.Accounts.User do
|
||||
use Ecto.Schema
|
||||
import Ecto.Changeset
|
||||
|
||||
schema "users" do
|
||||
field :bbuserid, :string
|
||||
|
||||
timestamps()
|
||||
end
|
||||
|
||||
def registration_changeset(user, attrs, _opts \\ []) do
|
||||
user
|
||||
|> cast(attrs, [:bbuserid])
|
||||
|> validate_required([:bbuserid])
|
||||
end
|
||||
end
|
Reference in New Issue
Block a user