This commit is contained in:
Chris Patuzzo 2012-11-21 18:04:08 +00:00
parent 1c0e7ab2f8
commit 104f4fde1d
1 changed files with 1 additions and 1 deletions

View File

@ -540,7 +540,7 @@ module ActiveRecord
column_type_sql << "(#{precision})"
end
elsif scale
raise ArgumentError, "Error adding decimal column: precision cannot be empty if scale if specified"
raise ArgumentError, "Error adding decimal column: precision cannot be empty if scale is specified"
end
elsif (type != :primary_key) && (limit ||= native.is_a?(Hash) && native[:limit])