method
update_column
v7.1.3.2 -
Show latest stable
- Class:
ActiveRecord::Persistence
update_column(name, value)public
Equivalent to update_columns(name => value).
1Note
Use `update_all` for Updating the Same Column for Multiple Records.
http://apidock.com/rails/ActiveRecord/Relation/update_all
Client.where( country: 'Canada' ).update_all( country_code: 'CA' )