diff options
author | Matthew Lemon <y@yulqen.org> | 2023-12-17 14:26:17 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-12-17 14:26:17 +0000 |
commit | c84b94a647fb4c068e8be9d0495ff7284f41f168 (patch) | |
tree | d969c75c764436c0478234233597e38e1e29c2d5 /app/models/event.rb |
Initial
Diffstat (limited to 'app/models/event.rb')
-rw-r--r-- | app/models/event.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/app/models/event.rb b/app/models/event.rb new file mode 100644 index 0000000..1f722d3 --- /dev/null +++ b/app/models/event.rb @@ -0,0 +1,4 @@ +class Event < ApplicationRecord + validates :name, presence: true, length: { maximum: 50 } + validates :date, presence: true +end |