aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJosé Valim <jose.valim@plataformatec.com.br>2012-02-08 06:42:32 -0800
committerJosé Valim <jose.valim@plataformatec.com.br>2012-02-08 06:42:32 -0800
commit6d17b3677886438b208326df75b7d7ad6e7eadb4 (patch)
treeb492e867dcef9c1fd3aafb1c90e06270b0463d9d
parentd3d807a173d0a7bc0c2235837151ff610799cb16 (diff)
parent7c167dd2de9acd5496070467dfbc4dfc4304a639 (diff)
downloadrails-6d17b3677886438b208326df75b7d7ad6e7eadb4.tar.gz
rails-6d17b3677886438b208326df75b7d7ad6e7eadb4.tar.bz2
rails-6d17b3677886438b208326df75b7d7ad6e7eadb4.zip
Merge pull request #4941 from rafaelfranca/fix-build
Use real table and columns for index test
-rw-r--r--activerecord/test/cases/migration_test.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index 045568d688..5c5c872993 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -162,10 +162,10 @@ if ActiveRecord::Base.connection.supports_migrations?
end
def test_add_index_attribute_length_limit
- Person.connection.add_index :testings, [:foo, :bar], :length => {:foo => 10, :bar => nil}, :name => "attribute_length"
- assert Person.connection.index_exists?(:testings, [:foo, :bar])
+ Person.connection.add_index :people, [:first_name, :primary_contact_id], :length => {:first_name => 10, :primary_contact_id => nil}, :name => "attribute_length"
+ assert Person.connection.index_exists?(:people, [:first_name, :primary_contact_id], :name => "attribute_length")
ensure
- Person.connection.remove_index("people", :name => "attribute_length")
+ Person.connection.remove_index(:people, :name => "attribute_length")
end
def test_remove_nonexistent_index