Skip to content

Commit 3ca2d96

Browse files
committed
add new fields
1 parent 1934089 commit 3ca2d96

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
@@ -19,6 +19,7 @@ defmodule Algora.Matches.JobMatch do
1919
field :candidate_discarded_at, :utc_datetime_usec
2020
field :custom_sort_order, :integer
2121
field :anonymize, :boolean, default: true
22+
field :company_notes, :string
2223

2324
belongs_to :user, Algora.Accounts.User
2425
belongs_to :job_posting, Algora.Jobs.JobPosting
@@ -41,7 +42,8 @@ defmodule Algora.Matches.JobMatch do
4142
:candidate_bookmarked_at,
4243
:candidate_discarded_at,
4344
:custom_sort_order,
44-
:anonymize
45+
:anonymize,
46+
:company_notes
4547
])
4648
|> validate_required([:user_id, :job_posting_id])
4749
|> 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.AddCompanyNotesToJobMatches do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:job_matches) do
6+
add :company_notes, :text
7+
end
8+
end
9+
end

0 commit comments

Comments
 (0)