Skip to content
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

markdown column missing when migrating from old cms #12

Open
Fodoj opened this issue Jan 29, 2025 · 1 comment
Open

markdown column missing when migrating from old cms #12

Fodoj opened this issue Jan 29, 2025 · 1 comment

Comments

@Fodoj
Copy link

Fodoj commented Jan 29, 2025

Snippets table got a new field markdown, compared to the original gem. This fork doesn't have a migration to add this field, which results in undefined method markdown' for an instance of Comfy::Cms::Snippet` when accessing snippets interface. I solved it for my project with a simple migration:

class AddMarkdownToComfySnippets < ActiveRecord::Migration[7.1]
  def change
    add_column :comfy_cms_snippets, :markdown, :boolean, default: false
  end
end
@avonderluft
Copy link
Collaborator

Thanks @Fodoj - we'll get this in soon.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants