diff options
author | Matthew Lemon <y@yulqen.org> | 2023-12-18 20:16:55 +0000 |
---|---|---|
committer | Matthew Lemon <y@yulqen.org> | 2023-12-18 20:16:55 +0000 |
commit | a0d95d9a49bc09a46e7170f3fe64510881a939d0 (patch) | |
tree | 19609d1afe1f79de85e22e282643b9e37201ffb7 /app/models/organisation.rb | |
parent | 56b8b11ff2b673005ad2044672f2eb215a905bba (diff) |
Starts adding tests for organisation
Diffstat (limited to 'app/models/organisation.rb')
-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 |