mirror of
https://github.com/discourse/discourse.git
synced 2024-11-26 10:50:26 -06:00
Merge pull request #3203 from fantasticfears/seed
FIX: respect default locale settings when seed
This commit is contained in:
commit
b071bd3c7c
@ -1,6 +1,10 @@
|
||||
# we need to run seed_fu every time we run rake db:migrate
|
||||
task 'db:migrate' => 'environment' do
|
||||
# we should set the locale before the migration
|
||||
task 'set_locale' do
|
||||
I18n.locale = (SiteSetting.default_locale || :en) rescue :en
|
||||
end
|
||||
|
||||
# we need to run seed_fu every time we run rake db:migrate
|
||||
task 'db:migrate' => ['environment', 'set_locale'] do
|
||||
SeedFu.seed
|
||||
|
||||
if SiteSetting.vacuum_db_days > 0 &&
|
||||
|
Loading…
Reference in New Issue
Block a user