Browse files

Use strings for the table names

connection.tables returns an array of strings
  • Loading branch information...
1 parent d441de3 commit 6ebc8ca36c1840969cd5d003d9eb97bcad106d1c @rafaelfranca rafaelfranca committed Jul 1, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 activerecord/test/cases/migration/create_join_table_test.rb
View
2 activerecord/test/cases/migration/create_join_table_test.rb
@@ -12,7 +12,7 @@ def setup
def teardown
super
- [:artists_musics, :musics_videos, :catalog].each do |table_name|
+ %w(artists_musics musics_videos catalog).each do |table_name|
connection.drop_table table_name if connection.tables.include?(table_name)
end
end

0 comments on commit 6ebc8ca

Please sign in to comment.