add dates to signup

This commit is contained in:
Torsten
2023-06-03 19:45:14 +03:00
parent 5a5f0585fb
commit 0605c1ea2f
5 changed files with 15 additions and 5 deletions

View File

@ -20,6 +20,7 @@ class Member < ApplicationRecord
validates :bio, length: { maximum: 1000 }
validates :name , length: { minimum: 3 }
validates_presence_of :arriving , :leaving
def admin
self.email == "torsten@villataika.fi"