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:
parent
d441de3697
commit
6ebc8ca36c
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue