Skip to content

Commit 8b87379

Browse files
committed
add new user fields
1 parent 4d9b421 commit 8b87379

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

lib/algora/accounts/schemas/user.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,7 @@ defmodule Algora.Accounts.User do
5959
field :last_job_match_email_at, :utc_datetime_usec
6060
field :last_dm_date, :utc_datetime_usec
6161
field :candidate_notes, :string
62+
field :dm_thread_url, :string
6263

6364
field :seeking_bounties, :boolean, default: false
6465
field :seeking_contracts, :boolean, default: false
@@ -527,7 +528,8 @@ defmodule Algora.Accounts.User do
527528
cast(user, params, [
528529
:last_job_match_email_at,
529530
:last_dm_date,
530-
:candidate_notes
531+
:candidate_notes,
532+
:dm_thread_url
531533
])
532534
end
533535

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
defmodule Algora.Repo.Migrations.AddDmThreadUrlToUsers do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:users) do
6+
add :dm_thread_url, :string
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)