method

insert

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

Method deprecated or moved

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

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

Executes an INSERT query and returns the new record’s ID