Accessing Translations Tables via console

159 views Asked by At

If one dumps the output of a postgresql DB, there are two tables indicated (and expected):

mobility_text_translations
mobility_string_translations

COPY public.mobility_string_translations (id, locale, key, value, translatable_type, translatable_id, created_at, updated_at) FROM stdin;

[...]

However if one wants to query those tables from the console (development process making things messy on occasion)

MobilityTextTranslation.last
> NameError (uninitialized constant MobilityTextTranslation)
MobilityStringTranslation.last
> NameError (uninitialized constant MobilityStringTranslation)

which is somewhat unexpected.

What is a way to query to edit/remove records of these tables?

0

There are 0 answers