aboutsummaryrefslogtreecommitdiffstats
path: root/app/models/event.rb
diff options
context:
space:
mode:
Diffstat (limited to 'app/models/event.rb')
-rw-r--r--app/models/event.rb4
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