Skip to content

Commit b15ccfc

Browse files
committed
add new user fields to control visibility
1 parent afc9be0 commit b15ccfc

File tree

2 files changed

+12
-0
lines changed

2 files changed

+12
-0
lines changed

lib/algora/accounts/schemas/user.ex

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,8 @@ defmodule Algora.Accounts.User do
6868
field :hiring, :boolean, default: false
6969
field :hiring_subscription, Ecto.Enum, values: [:inactive, :trial, :active], default: :inactive
7070
field :hiring_keywords, :string
71+
field :candidates_require_login, :boolean, default: true
72+
field :candidates_require_confirmation, :boolean, default: true
7173

7274
field :hourly_rate_min, Money
7375
field :hourly_rate_max, Money
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
defmodule Algora.Repo.Migrations.AddCandidateVisibilityFieldsToUsers do
2+
use Ecto.Migration
3+
4+
def change do
5+
alter table(:users) do
6+
add :candidates_require_login, :boolean, default: true
7+
add :candidates_require_confirmation, :boolean, default: true
8+
end
9+
end
10+
end

0 commit comments

Comments
 (0)