feat: adds settings live view and updated seeds
This commit is contained in:
parent
193618eace
commit
37553d8d6c
6 changed files with 144 additions and 9 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue