mirror of
https://github.com/codeninjasllc/discourse.git
synced 2025-04-01 09:39:51 -04:00
Fix error during db:migrate on a new database
This commit is contained in:
parent
d30fbcd491
commit
739d6391a9
1 changed files with 5 additions and 1 deletions
|
@ -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…
Add table
Reference in a new issue