instance method extract_limit

Ruby on Rails 4.1.16

Since v3.0.20 Last seen in v4.1.16 Private

Available in: v3.0.20 v3.1.12 v3.2.22.5 v4.0.13 v4.1.16

Signature

extract_limit(sql_type)

No documentation comment.

Parameters

sql_type req
Source
# File activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb, line 169
        def extract_limit(sql_type)
          case sql_type
          when /^bigint/i;    8
          when /^smallint/i;  2
          when /^timestamp/i; nil
          else super
          end
        end

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

Defined in ActiveRecord::ConnectionAdapters::PostgreSQLColumn

Type at least 2 characters to search.

↑↓ navigate · open · esc close