diff options
author | José Valim <jose.valim@gmail.com> | 2012-02-08 14:06:44 +0100 |
---|---|---|
committer | José Valim <jose.valim@gmail.com> | 2012-02-08 14:06:44 +0100 |
commit | d3d807a173d0a7bc0c2235837151ff610799cb16 (patch) | |
tree | 03c25466b8571093f698cf0b07169be657e84111 /activerecord/test/cases | |
parent | 0a75336c89a517bf2328a6e5f87319b9f2457252 (diff) | |
download | rails-d3d807a173d0a7bc0c2235837151ff610799cb16.tar.gz rails-d3d807a173d0a7bc0c2235837151ff610799cb16.tar.bz2 rails-d3d807a173d0a7bc0c2235837151ff610799cb16.zip |
Push proper test changes for previous commit conflicts.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/migration_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb index c4ccce9126..045568d688 100644 --- a/activerecord/test/cases/migration_test.rb +++ b/activerecord/test/cases/migration_test.rb @@ -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 |