DEV: Properly reset column information before seeding.

DEV: Properly reset column information before seeding.

diff --git a/db/fixtures/001_refresh.rb b/db/fixtures/001_refresh.rb
index 5188adc..9d3a961 100644
--- a/db/fixtures/001_refresh.rb
+++ b/db/fixtures/001_refresh.rb
@@ -1,5 +1,8 @@
 # frozen_string_literal: true
 
 # fix any bust caches post initial migration
-ActiveRecord::Base.public_send(:subclasses).each { |m| m.reset_column_information }
+ActiveRecord::Base.connection.tables.each do |table|
+  table.classify.constantize.reset_column_information rescue nil
+end
+
 SiteSetting.refresh!
diff --git a/db/fixtures/990_topics.rb b/db/fixtures/990_topics.rb
index 13c8b53..fd29715 100644
--- a/db/fixtures/990_topics.rb
+++ b/db/fixtures/990_topics.rb
@@ -1,12 +1,8 @@
 # frozen_string_literal: true
 
-require 'seed_data/topics'
-
-User.reset_column_information
-Topic.reset_column_information
-Post.reset_column_information
-
 if !Rails.env.test?
+  require 'seed_data/topics'
+
   topics_exist = Topic.where(<<~SQL).exists?
     id NOT IN (
       SELECT topic_id

GitHub sha: 3e888cbb