--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/tdnUJ-TqutEJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-co...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/tvA_NDIEJ5QJ.
Steve,It'd be cool if the patch included the addition of a :validate => false option in update_attributes.This would make for an easier upgrade path from update_attribute.
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
XavierI think I can give you a hand adding the deprecation.
But I want to notice, that column != attribute in common case, for example:> User.first.update_column :password, '123123'SQL (0.2ms) UPDATE "users" SET "password" = '123123' WHERE "users"."id" = 1ActiveRecord::StatementInvalid: SQLite3::SQLException: no such column: password: UPDATE "users" SET "password" = '123123' WHERE "users"."id"> User.first.update_attribute :password, '123123'(0.4ms) UPDATE "users" SET "password_digest" = '$2a$10$x3GxNtIEClpqJD1kwGKFneOWh6v9JJbdeb9KW36qN8R2oPdcr/hPG', "updated_at" = '2012-08-09 13:38:53.459408' WHERE "users"."id" = 1
среда, 13 июня 2012 г., 19:37:52 UTC+4 пользователь MikeGehard написал:
--
You received this message because you are subscribed to the Google Groups "Ruby on Rails: Core" group.
To view this discussion on the web visit https://groups.google.com/d/msg/rubyonrails-core/-/6KLIU1Jn2mMJ.
To post to this group, send email to rubyonra...@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-co...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-core?hl=en.