Skip to content

Commit 0cf3092

Browse files
Merge pull request rails#8290 from cpatuzzo/master
Fixed a typo
2 parents 1c0e7ab + 104f4fd commit 0cf3092

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -540,7 +540,7 @@ def type_to_sql(type, limit = nil, precision = nil, scale = nil) #:nodoc:
540540
column_type_sql << "(#{precision})"
541541
end
542542
elsif scale
543-
raise ArgumentError, "Error adding decimal column: precision cannot be empty if scale if specified"
543+
raise ArgumentError, "Error adding decimal column: precision cannot be empty if scale is specified"
544544
end
545545

546546
elsif (type != :primary_key) && (limit ||= native.is_a?(Hash) && native[:limit])

0 commit comments

Comments
 (0)