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

# -*- SkipSchemaAnnotations can not work . #167

Closed
songjiayang opened this issue Mar 4, 2014 · 4 comments
Closed

# -*- SkipSchemaAnnotations can not work . #167

songjiayang opened this issue Mar 4, 2014 · 4 comments
Assignees
Labels
Milestone

Comments

@songjiayang
Copy link

error message Unable to annotate user.rb: stack level too deep when i run migrate .
i add # -*- SkipSchemaAnnotations in user.rb, but it not work yet , but
skip_on_db_migrate=1 rake db:migrate work well . thanks

@ctran
Copy link
Owner

ctran commented Mar 4, 2014

Please include the stack trace with "--trace" option. It is also helpful to include the necessary bits in user.rb.

@gbenedict
Copy link

I'm having the same issue with # -*- SkipSchemaAnnotations – it doesn't skip the annotation.

@ctran
Copy link
Owner

ctran commented Jan 7, 2015

Please provide more details: your version of ruby and annotate, Gem file, any other useful information.
Also the symptoms of why you think it doesn't work.

@gbenedict
Copy link

ruby: 2.1.2p95
gem: 2.6.5

I have added # -*- SkipSchemaAnnotations to several models, but the annotations are still added to those models during migrations or running annotate directly. The models I am trying to skip are in a subdirectory for organization. They also use STI and inheritance (WorkflowActionCallExternalApi < WorkflowAction).

mafernando added a commit to mafernando/annotate_models that referenced this issue Mar 29, 2015
Potentially addresses issue# ctran#167
Annotate_model_file is called automatically on all files in models directory and does not check if model contains SkipSchemaAnnotations tag.
mafernando added a commit to mafernando/annotate_models that referenced this issue Mar 30, 2015
Potentially addresses issue# ctran#167
Annotate_model_file is called automatically on all files in models directory and does not check if model contains SkipSchemaAnnotations tag.
@ctran ctran added this to the v2.6.9 milestone Apr 10, 2015
@ctran ctran added the bug label Apr 10, 2015
@ctran ctran self-assigned this Apr 10, 2015
@ctran ctran closed this as completed Apr 10, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants