diff options
Diffstat (limited to 'app/models/operation.rb')
-rw-r--r-- | app/models/operation.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/app/models/operation.rb b/app/models/operation.rb new file mode 100644 index 0000000..5506ec3 --- /dev/null +++ b/app/models/operation.rb @@ -0,0 +1,6 @@ +class Operation < ApplicationRecord + validates :name, presence: true, length: { maximum: 35 } + + has_many :events + belongs_to :organisation +end |