mirror of
https://github.com/discourse/discourse.git
synced 2025-02-21 03:19:10 +00:00
Fix error during db:migrate on a new database
This commit is contained in:
parent
d30fbcd491
commit
739d6391a9
@ -1,3 +1,7 @@
|
||||
RailsMultisite::ConnectionManagement.each_connection do
|
||||
SiteSetting.refresh!
|
||||
begin
|
||||
SiteSetting.refresh!
|
||||
rescue ActiveRecord::StatementInvalid
|
||||
# This will happen when migrating a new database
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user