Thrillberg / imperial

Imperial is a fun board game.
17 stars 6 forks source link

Persist game states in postgres, not redis #782

Closed Thrillberg closed 1 year ago

Thrillberg commented 1 year ago

Wiping redis with every restart of the server is very annoying and it's harder to repopulate redis upon initialization than to just persist the data all the time in postgres.

Thrillberg commented 1 year ago

This might be useful: https://guides.rubyonrails.org/active_record_postgresql.html#json-and-jsonb