diff options
author | Sebastian Martinez <sebastian@wyeworks.com> | 2011-03-27 19:12:28 -0300 |
---|---|---|
committer | Santiago Pastorino <santiago@wyeworks.com> | 2011-03-27 21:47:38 -0300 |
commit | 245542ea2994961731be105db6c076256a22a7a9 (patch) | |
tree | 4780488d15d639f516d14b976bb5e077c6dbc3d9 /activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | |
parent | e6a8a3adaf08cc9d551b4a125aaa276812984be3 (diff) | |
download | rails-245542ea2994961731be105db6c076256a22a7a9.tar.gz rails-245542ea2994961731be105db6c076256a22a7a9.tar.bz2 rails-245542ea2994961731be105db6c076256a22a7a9.zip |
Added new #update_column method.
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb')
-rw-r--r-- | activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb index 73d02c9676..f4d14853d3 100644 --- a/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb +++ b/activerecord/test/cases/associations/has_and_belongs_to_many_associations_test.rb @@ -604,7 +604,7 @@ class HasAndBelongsToManyAssociationsTest < ActiveRecord::TestCase project = SpecialProject.create("name" => "Special Project") assert developer.save developer.projects << project - developer.update_attribute("name", "Bruza") + developer.update_column("name", "Bruza") assert_equal 1, Developer.connection.select_value(<<-end_sql).to_i SELECT count(*) FROM developers_projects WHERE project_id = #{project.id} |