method

find_primary_key

rails latest stable - Class: Arel::Visitors::MSSQL

Method deprecated or moved

This method is deprecated or moved on the latest stable version. The last existing version (v6.0.0) is shown here.

find_primary_key(o)
private

No documentation available.

# File activerecord/lib/arel/visitors/mssql.rb, line 148
        def find_primary_key(o)
          @primary_keys[o.name] ||= begin
            primary_key_name = @connection.primary_key(o.name)
            # some tables might be without primary key
            primary_key_name && o[primary_key_name]
          end
        end