method

with_identity_insert_enabled

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.2.6) is shown here.

with_identity_insert_enabled(table_name, &block)
private

Turns IDENTITY_INSERT ON for table during execution of the block N.B. This sets the state of IDENTITY_INSERT to OFF after the block has been executed without regard to its previous state