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:
parent
05f7d5a2de
commit
b031e3220a
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue