method
id=
v8.0.0 -
Show latest stable
- Class:
ActiveRecord::AttributeMethods::PrimaryKey
id=(value)public
Sets the primary key column’s value. If the primary key is composite, raises TypeError when the set value not enumerable.
id=(value)Sets the primary key column’s value. If the primary key is composite, raises TypeError when the set value not enumerable.