Permalink
Browse files

Push proper test changes for previous commit conflicts.

  • Loading branch information...
1 parent 0a75336 commit d3d807a173d0a7bc0c2235837151ff610799cb16 @josevalim josevalim committed Feb 8, 2012
Showing with 4 additions and 2 deletions.
  1. +4 −2 activerecord/test/cases/migration_test.rb
View
6 activerecord/test/cases/migration_test.rb
@@ -162,8 +162,10 @@ def test_add_index_length_limit
end
def test_add_index_attribute_length_limit
- connection.add_index :testings, [:foo, :bar], :length => {:foo => 10, :bar => nil}
- assert connection.index_exists?(:testings, [:foo, :bar])
+ Person.connection.add_index :testings, [:foo, :bar], :length => {:foo => 10, :bar => nil}, :name => "attribute_length"
+ assert Person.connection.index_exists?(:testings, [:foo, :bar])
+ ensure
+ Person.connection.remove_index("people", :name => "attribute_length")
end
def test_remove_nonexistent_index

0 comments on commit d3d807a

Please sign in to comment.