Push proper test changes for previous commit conflicts.

This commit is contained in:
José Valim
2012-02-08 14:06:44 +01:00
parent 0a75336c89
commit d3d807a173

View File

@@ -162,8 +162,10 @@ if ActiveRecord::Base.connection.supports_migrations?
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