all the stuff to add 2 fields to the user object and to access the logged0in user in a liveview session
11 lines
204 B
Elixir
11 lines
204 B
Elixir
defmodule SomethingErlang.Repo.Migrations.UsersAddSadata do
|
|
use Ecto.Migration
|
|
|
|
def change do
|
|
alter table("users") do
|
|
add :bbuserid, :string
|
|
add :bbpassword, :string
|
|
end
|
|
end
|
|
end
|