mirror of
https://github.com/discourse/discourse.git
synced 2025-05-22 22:43:33 +08:00
FIX: fails on initial migration if default_locale is nil
This commit is contained in:
@ -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 &&
|
||||
|
Reference in New Issue
Block a user