method

insert

Method deprecated or moved

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

insert(sql, name = nil, pk = nil, id_value = nil)
public

No documentation available.

# File activerecord/lib/active_record/connection_adapters/sqlite_adapter.rb, line 448
      def insert(sql, name = nil, pk = nil, id_value = nil)
        execute(sql, name = nil)
        id_value || @connection.last_insert_rowid
      end