blackcandy-org/blackcandy

Raise error when use PostgreSQL as database

Closed this issue · 1 comments

error messages:

Unable to load application: ActiveRecord::AttributeMethods::Serialization::ColumnNotSerializableError: Column `recently_played_album_ids` of type ActiveRecord::ConnectionAdapters::PostgreSQL::OID::Array does not support `serialize` feature.
black_candy-app-1       | Usually it means that you are trying to use `serialize`
black_candy-app-1       | on a column that already implements serialization natively.

This issue only occurs when switch from sqlite to postgres, but previous app container didn't prune. And after running docker compose up, the previous app container will raise this error. So this issue doesn't related to black candy. It's just a wrong opertation using docker compose.