insert

insert(arel, name = nil, pk = nil, id_value = nil, sequence_name = nil, binds = [])
Instance Public methods

Returns the last auto-generated ID from the affected table.

id_value will be returned unless the value is nil, in which case the database will attempt to calculate the last inserted id and return that value.

If the next id was calculated in advance (as in Oracle), it should be passed in as id_value.

doc_ruby_on_rails
2025-01-10 15:47:30
Comments
Leave a Comment

Please login to continue.