instance method extract_precision

Ruby on Rails 5.0.7.2

Since v5.0.7.2 Last seen in v6.1.7.10

Available in: v5.0.7.2 v5.1.7 v5.2.8.1 v6.0.6.1 v6.1.7.10

Signature

extract_precision(sql_type)

No documentation comment.

Parameters

sql_type req
Source
# File activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb, line 704
      def extract_precision(sql_type)
        if /time/ === sql_type
          super || 0
        else
          super
        end
      end

Defined in activerecord/lib/active_record/connection_adapters/abstract_mysql_adapter.rb line 704 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ConnectionAdapters::AbstractMysqlAdapter

Type at least 2 characters to search.

Use the arrow keys to navigate results, Enter to open one, Escape to close.

Keyboard shortcuts

/
Focus search
⌘K / Ctrl-K
Command palette
?
This help
Esc
Close