Skip to content

Commit

Permalink
Merge pull request #43845 from bibendi/patch-1
Browse files Browse the repository at this point in the history
Fix a mistype when calling ArgumentError
  • Loading branch information
kamipo committed Dec 12, 2021
2 parents 1999d14 + 90ec1f7 commit 7103bb4
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -569,7 +569,7 @@ def type_to_sql(type, limit: nil, precision: nil, scale: nil, array: nil, enum_t
else raise ArgumentError, "No integer type has byte size #{limit}. Use a numeric with scale 0 instead."
end
when "enum"
raise ArgumentError "enum_type is required for enums" if enum_type.nil?
raise ArgumentError, "enum_type is required for enums" if enum_type.nil?

enum_type
else
Expand Down

0 comments on commit 7103bb4

Please sign in to comment.