diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-01 13:53:16 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2012-07-01 13:53:16 -0300 |
commit | 6ebc8ca36c1840969cd5d003d9eb97bcad106d1c (patch) | |
tree | 4420838d077824ed41585776bcbcc733f9c1b60b /activerecord/test/cases/migration | |
parent | d441de36971c0e5c0566def81f90a17dab3cc106 (diff) | |
download | rails-6ebc8ca36c1840969cd5d003d9eb97bcad106d1c.tar.gz rails-6ebc8ca36c1840969cd5d003d9eb97bcad106d1c.tar.bz2 rails-6ebc8ca36c1840969cd5d003d9eb97bcad106d1c.zip |
Use strings for the table names
connection.tables returns an array of strings
Diffstat (limited to 'activerecord/test/cases/migration')
-rw-r--r-- | activerecord/test/cases/migration/create_join_table_test.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/migration/create_join_table_test.rb b/activerecord/test/cases/migration/create_join_table_test.rb index 04a5e06992..8b91b3bc92 100644 --- a/activerecord/test/cases/migration/create_join_table_test.rb +++ b/activerecord/test/cases/migration/create_join_table_test.rb @@ -12,7 +12,7 @@ module ActiveRecord 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 |