Skip to content

Commit

Permalink
max length on service name/description
Browse files Browse the repository at this point in the history
  • Loading branch information
kbrock committed Dec 10, 2024
1 parent e4dca87 commit 1952d23
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion app/models/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -87,7 +87,8 @@ class Service < ApplicationRecord
virtual_column :power_state, :type => :string
virtual_column :power_status, :type => :string

validates :name, :presence => true
validates :name, :presence => true, :length => {:maximum => 256}
validates :description, :length => {:maximum => 1024}

default_value_for :visible, false
default_value_for :initiator, 'user'
Expand Down

0 comments on commit 1952d23

Please sign in to comment.