test/test_helper.rb in has_translations-1.1.0 vs test/test_helper.rb in has_translations-1.1.1

- old
+ new

@@ -22,9 +22,9 @@ ActiveRecord::Migration.verbose = false load 'schema.rb' end def teardown_db - ActiveRecord::Base.connection.tables.each do |table| + ActiveRecord::Base.connection.public_send(ActiveRecord::VERSION::MAJOR >= 5 ? :data_sources : :tables).each do |table| ActiveRecord::Base.connection.drop_table(table) end end