-
-
Notifications
You must be signed in to change notification settings - Fork 315
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
DEPRECATION WARNING: Using a 'Essence#{type}' content is deprecated. Please use a '#{type}' instead #2405
Comments
Have you tried using - name: icon_link
ingredients:
- name: some-thing
type: Text instead of - name: icon_link
contents:
- name: some-thing
type: EssenceText in your
We still support both, but ingredients is the future. Hence the deprecation warnings. |
When I try switching from Things like
And I can't access those classes myself in a console either. |
The classes are all namespaced to You need to run a task to convert the existing elements to ingredients:
|
Is there a built-in way to migrate |
Yes, the above mentioned task |
Do I need to change something in my I tried changing |
|
Sorry, you also need to change Then run the task. Some background in this change can be found in this PR #2061 (comment) We really need to update the guides... |
Ok, that worked. Could I drop the "alchemy_essence_#{type}" tables from the database now? |
Since the Models are loaded in production and Rails would fail without the tables, I would not recommend that. They do no harm. |
This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
Here's a small sample of my server log:
Not only do these a totally pollute my logs, The suggested fix doesn't exist yet. The schema is all
Essence#{type}
tables.I see
Alchemy::Deprecation.silence
but it takes a block and I don't want to pass my entire app into that block.What's my recommended fix here?
The text was updated successfully, but these errors were encountered: