discourse/db/fixtures/001_refresh.rb

4 lines
150 B
Ruby

# fix any bust caches post initial migration
ActiveRecord::Base.public_send(:subclasses).each { |m| m.reset_column_information }
SiteSetting.refresh!