'Downgrade alchemy-cms

I need to downgrade alchemy-cms from 5.2 to 4.6, how should I do this?

When I execute the rake command, for example:

$bin/rake db:migrate

I get this message:

== 20211109024146 RemoveVisibleFromAlchemyPages: migrating ====================
You have invisible pages in your database! Please re-structure your page tree before running this migration. You might also downgrade to Alchemy 4.6 and run the `alchemy:upgrade:4.6:restructure_page_tree` rake task.


Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source