aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/migration
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2012-07-01 13:53:16 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2012-07-01 13:53:16 -0300
commit6ebc8ca36c1840969cd5d003d9eb97bcad106d1c (patch)
tree4420838d077824ed41585776bcbcc733f9c1b60b /activerecord/test/cases/migration
parentd441de36971c0e5c0566def81f90a17dab3cc106 (diff)
downloadrails-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.rb2
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