Skip to content

Commit

Permalink
Merge pull request #26 from performant-software/feature/udcsl202_user…
Browse files Browse the repository at this point in the history
…_defined_field_errors

UDCSL #202 - User defined field errors
  • Loading branch information
dleadbetter authored May 4, 2023
2 parents 3ee864c + 3c1551e commit 8be734a
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions app/models/user_defined_fields/user_defined_field.rb
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,9 @@ class UserDefinedField < ApplicationRecord
# Resourceable parameters
allow_params :table_name, :column_name, :data_type, :required, :searchable, :allow_multiple, :order, options: []

# Validations
validates :order, numericality: { only_integer: true }

# Constants
DATA_TYPES = {
boolean: 'Boolean',
Expand Down

0 comments on commit 8be734a

Please sign in to comment.