Skip to content

Commit bab97e6

Browse files
committed
add eval to job matches
1 parent 78d72f7 commit bab97e6

File tree

2 files changed

+12
-1
lines changed

2 files changed

+12
-1
lines changed

lib/algora/matches/schemas/job_match.ex

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ defmodule Algora.Matches.JobMatch do
2323
field :dripped_at, :utc_datetime_usec
2424
field :locked, :boolean, default: false
2525
field :is_draft, :boolean, default: false
26+
field :eval, :map
2627

2728
belongs_to :user, Algora.Accounts.User
2829
belongs_to :job_posting, Algora.Jobs.JobPosting
@@ -49,7 +50,8 @@ defmodule Algora.Matches.JobMatch do
4950
:company_notes,
5051
:dripped_at,
5152
:locked,
52-
:is_draft
53+
:is_draft,
54+
:eval
5355
])
5456
|> validate_required([:user_id, :job_posting_id])
5557
|> validate_inclusion(:status, [:pending, :discarded, :automatched, :dripped, :approved, :highlighted])
Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
defmodule Algora.Repo.Migrations.AddEvalToJobMatches do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:job_matches) do
6+
add :eval, :map
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)