         number: i,
         project_id: 1,
         user_id: 1,
-        task_list_id: 1
+        task_list_id: Enum.random([1, 2, 3, 4])
       })
       |> Repo.insert!
     end

  Repo.all(OrganizationMembership) != [] ->
    IO.puts "Organization memberships detected, aborting this seed."
  true ->
    owner = %{
      organization_id: 1,
      member_id: 1
    }

    %OrganizationMembership{}
    |> OrganizationMembership.create_owner_changeset(owner)
    |> Repo.insert!
end

    IO.puts "Users detected, aborting user seed."
  true ->
    Enum.each(users, fn user ->
      result =
        %User{}
        |> User.registration_changeset(user)
        |> Repo.insert!

      result
      |> User.update_changeset(user)
      |> Repo.update!
    end)
end

