Skip to content

Commit

Permalink
Push proper test changes for previous commit conflicts.
Browse files Browse the repository at this point in the history
  • Loading branch information
josevalim committed Feb 8, 2012
1 parent 0a75336 commit d3d807a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions activerecord/test/cases/migration_test.rb
Expand Up @@ -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
Expand Down

0 comments on commit d3d807a

Please sign in to comment.