instance method
extract_scale
Ruby on Rails 3.2.22.5
Since v3.0.20 Last seen in v4.1.16 PrivateSignature
extract_scale(sql_type)
Extracts the scale from PostgreSQL-specific data types.
Parameters
-
sql_typereq
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 66
def extract_scale(sql_type)
# Money type has a fixed scale of 2.
sql_type =~ /^money/ ? 2 : super
end
Defined in activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb line 66
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActiveRecord::ConnectionAdapters::PostgreSQLColumn