mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:06:32 +08:00
FIX: fails on initial migration if default_locale is nil
This commit is contained in:
parent
c07d76677d
commit
fe6e4d7da1
|
@ -1,6 +1,6 @@
|
|||
# we need to run seed_fu every time we run rake db:migrate
|
||||
task 'db:migrate' => 'environment' do
|
||||
I18n.locale = SiteSetting.default_locale rescue :en
|
||||
I18n.locale = (SiteSetting.default_locale || :en) rescue :en
|
||||
SeedFu.seed
|
||||
|
||||
if SiteSetting.vacuum_db_days > 0 &&
|
||||
|
|
Loading…
Reference in New Issue
Block a user