1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

Use strings for the table names

connection.tables returns an array of strings
This commit is contained in:
Rafael Mendonça França 2012-07-01 13:53:16 -03:00
parent d441de3697
commit 6ebc8ca36c

View file

@ -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