method

get_identity_column

rails latest stable - Class: ActiveRecord::ConnectionAdapters::SQLServerAdapter

Method deprecated or moved

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

get_identity_column(table_name)
private

No documentation available.

# File activerecord/lib/active_record/connection_adapters/sqlserver_adapter.rb, line 518
        def get_identity_column(table_name)
          @table_columns = {} unless @table_columns
          @table_columns[table_name] = columns(table_name) if @table_columns[table_name] == nil
          @table_columns[table_name].each do |col|
            return col.name if col.identity
          end

          return nil
        end