DEV: initial migration can fail

db:migrate can issue translations due to module loading localizing
end user messages

This allows db:migrate to work even when db is blank
This commit is contained in:
Sam Saffron 2019-09-17 13:38:01 +10:00
parent fb200e3055
commit 445d305154

@ -162,6 +162,12 @@ module I18n
end
by_site[locale].with_indifferent_access
rescue ActiveRecord::StatementInvalid => e
if PG::UndefinedTable === e.cause
{}
else
raise
end
end
def client_overrides_json(locale)