Skip to content

Commit

Permalink
use Role.upsert_role/1 in seeds.exs #95
Browse files Browse the repository at this point in the history
  • Loading branch information
nelsonic committed Sep 12, 2020
1 parent 59560c0 commit 063e362
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion priv/repo/seeds.exs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ defmodule SeedData do

def create_default_roles do
Enum.each(get_json("/priv/repo/default_roles.json"), fn role ->
Role.create_role(role)
Role.upsert_role(role)
end)
end

Expand Down

0 comments on commit 063e362

Please sign in to comment.