-
Notifications
You must be signed in to change notification settings - Fork 646
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
Weird bug with db:migrate #55
Comments
I'm having the same issue. I've tested several scenarios, seems this issue will happen only when using :only with devise gem. |
More information after a bit of research: It's caused by the So one work around would be comment out the |
This is a really old issue, which unfortunately is still unresolved as of 4.2. Rather than commenting code out, I solved the issue this way: class User < ActiveRecord::Base
audited if self.table_exists?
...
end If/when I have more time, I'll look into adding a check and submitting a pull request. |
@fdeschenes Thank you for the workaround. Yes, please submit a PR (if you haven't already). Thank you! |
If in my users model I have:
I can rollback and db:migrate no problem. BUT if i have
I get
Could not find table 'users'
(when building from scratch).
It seems like there is a problem with the :only option.... I guess i should mention that i am also using the devise gem.
Thanks!
The text was updated successfully, but these errors were encountered: