aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorTim Connor <tim@wasabi.local>2010-09-27 11:56:18 +1300
committerSantiago Pastorino <santiago@wyeworks.com>2010-09-26 20:40:14 -0300
commitd6f7b7d35337b87cc1c419e47fae52bbfc3f371e (patch)
tree0c9ed6eadd3ab2e791712d5131c243d825953db6 /activerecord/test/cases
parent56de4e9a8090e2e617a0d478d38c0fccfce7d725 (diff)
downloadrails-d6f7b7d35337b87cc1c419e47fae52bbfc3f371e.tar.gz
rails-d6f7b7d35337b87cc1c419e47fae52bbfc3f371e.tar.bz2
rails-d6f7b7d35337b87cc1c419e47fae52bbfc3f371e.zip
Fix remove_index issue when provided :name is a symbol
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/migration_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration_test.rb b/activerecord/test/cases/migration_test.rb
index bcae46c7e8..8c75500998 100644
--- a/activerecord/test/cases/migration_test.rb
+++ b/activerecord/test/cases/migration_test.rb
@@ -91,7 +91,7 @@ if ActiveRecord::Base.connection.supports_migrations?
# Oracle adapter is shortening index name when just column list is given
unless current_adapter?(:OracleAdapter)
assert_nothing_raised { Person.connection.add_index("people", ["last_name", "first_name"]) }
- assert_nothing_raised { Person.connection.remove_index("people", :name => "index_people_on_last_name_and_first_name") }
+ assert_nothing_raised { Person.connection.remove_index("people", :name => :index_people_on_last_name_and_first_name) }
assert_nothing_raised { Person.connection.add_index("people", ["last_name", "first_name"]) }
assert_nothing_raised { Person.connection.remove_index("people", "last_name_and_first_name") }
end