FIX: fails on initial migration if default_locale is nil

This commit is contained in:
Sam 2014-08-29 12:01:13 +10:00
parent c07d76677d
commit fe6e4d7da1

View file

@ -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 &&