Skip to content

Attempt model annotation only if table exists #126

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

Merged
merged 1 commit into from
Aug 18, 2013

Conversation

davejachimiak
Copy link
Contributor

Say a developer begins constructing class Foo < ActiveRecord::Base and class Bar < ActiveRecord::Base. When she creates a migration to create a table for Foo, does rake db:migrate, she'll get an error from Annotate via the ActiveRecord adapter explaining that the bars table doesn't exist. Regardless of whether this is a good development practice, the error message is an annoyance.

@mykecameron
Copy link

👍

@wm
Copy link

wm commented Apr 17, 2013

I support this 👍

This is especially important when you want to run rollbacks and migrates too.

@ghost ghost assigned ctran Aug 15, 2013
@ctran
Copy link
Owner

ctran commented Aug 15, 2013

Do you mind re-submit this against master so I don't have to resolve the conflict manually?
Thanks.

@davejachimiak
Copy link
Contributor Author

@ctran rebased. Thanks!

ctran added a commit that referenced this pull request Aug 18, 2013
…xists

Attempt model annotation only if table exists
@ctran ctran merged commit f509941 into ctran:master Aug 18, 2013
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

Successfully merging this pull request may close these issues.

4 participants