feat: adds settings live view and updated seeds

This commit is contained in:
carla 2025-11-27 15:34:10 +01:00
parent 193618eace
commit 37553d8d6c
6 changed files with 144 additions and 9 deletions

View file

@ -58,6 +58,11 @@ defmodule Mv.Membership.Setting do
end
end
validations do
validate present(:club_name), on: [:create, :update]
validate string_length(:club_name, min: 1), on: [:create, :update]
end
attributes do
uuid_primary_key :id
@ -72,9 +77,4 @@ defmodule Mv.Membership.Setting do
timestamps()
end
validations do
validate present(:club_name), on: [:create, :update]
validate string_length(:club_name, min: 1), on: [:create, :update]
end
end