discourse/db/fixtures/001_refresh.rb

6 lines
181 B
Ruby

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