instance method id_value

Ruby on Rails 8.0.4

Since v7.1.6

Available in: v7.1.6 v7.2.3 v8.0.4 v8.1.2

Signature

id_value

Returns the underlying column value for a column named “id”. Useful when defining a composite primary key including an “id” column so that the value is readable.

Source
# File activerecord/lib/active_record/model_schema.rb, line 10
    

Defined in activerecord/lib/active_record/model_schema.rb line 10 · View on GitHub · Improve this page · Find usages on GitHub

Defined in ActiveRecord::ModelSchema

Type at least 2 characters to search.

↑↓ navigate · open · esc close