mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-23 23:58:31 -05:00
FIX: fails on initial migration if default_locale is nil
This commit is contained in:
parent
c07d76677d
commit
fe6e4d7da1
1 changed files with 1 additions and 1 deletions
|
@ -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 a new issue