discourse/db/fixtures/001_refresh.rb

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

9 lines
220 B
Ruby
Raw Normal View History

# frozen_string_literal: true
# fix any bust caches post initial migration
ActiveRecord::Base.connection.tables.each do |table|
table.classify.constantize.reset_column_information rescue nil
end
SiteSetting.refresh!