diff options
Diffstat (limited to 'app/models')
-rw-r--r-- | app/models/organisation.rb | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/models/organisation.rb b/app/models/organisation.rb index 89ad982..4177c35 100644 --- a/app/models/organisation.rb +++ b/app/models/organisation.rb @@ -1,3 +1,5 @@ class Organisation < ApplicationRecord has_many :events, dependent: :destroy + + validates :name, presence: true, length: { maximum: 25 } end |