FIX: migrations should not fail when db is part migrated

When part migrated the translate overrides may have missing columns
in that case just silently ignore overrides
This commit is contained in:
Sam Saffron 2020-05-20 15:28:01 +10:00
parent 05f7d5a2de
commit b031e3220a
No known key found for this signature in database
GPG Key ID: B9606168D2FFD9F5
1 changed files with 1 additions and 1 deletions

View File

@ -164,7 +164,7 @@ module I18n
by_site[locale].with_indifferent_access
rescue ActiveRecord::StatementInvalid => e
if PG::UndefinedTable === e.cause
if PG::UndefinedTable === e.cause || PG::UndefinedColumn === e.cause
{}
else
raise