Skip to content

Commit

Permalink
Fix tailing comma
Browse files Browse the repository at this point in the history
  • Loading branch information
bdaase committed Mar 4, 2019
1 parent 541c51c commit 0eec8dd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/models/request.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class Request < ApplicationRecord
enum status: %i[pending accepted rejected]
validates :name,
length: { maximum: MAX_NAME_LENGTH, message: 'only allows a maximum of %{count} characters' },
format: { with: /\A[a-z0-9\-]+\z/, message: 'only allows lowercase letters, numbers and "-"' },
format: { with: /\A[a-z0-9\-]+\z/, message: 'only allows lowercase letters, numbers and "-"' }
validate :name_uniqueness
validates :responsible_users, :project_id, :cpu_cores, :ram_gb, :storage_gb, :operating_system, :description, presence: true
validates :cpu_cores, numericality: { only_integer: true, greater_than: 0, less_than_or_equal_to: MAX_CPU_CORES }
Expand Down

0 comments on commit 0eec8dd

Please sign in to comment.