I'm trying to convert a column in the table from integer to uuid.
When I use the following migration:
change_column: <table_name>, :gameId, :uuid
I get the following error:
ActiveRecord::StatementInvalid: PG::DatatypeMismatch: ERROR: column "gameId" cannot be cast automatically to type uuid
HINT: You might need to specify "USING "gameId"::uuid".
There may be a solution in the following StackOverflow link. I'll confirm shortly.
I'm trying to convert a column in the table from integer to uuid.
When I use the following migration:
I get the following error:
There may be a solution in the following StackOverflow link. I'll confirm shortly.