-
Notifications
You must be signed in to change notification settings - Fork 96
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
warnings from hairtigger on postgres #43
Comments
I'll dig into this a bit to see if I can track it down. I suspect part (or all?) of the problem is that it can't infer the full trigger definition from the migration... hairtrigger's schema dumping code reads the migrations (using ruby_parser) and pulls out Did you see a warning like One other thing, if your app only ever uses a postgres db, the warnings are not a huge deal. Your triggers are still accurately represented in schema.rb, you just couldn't use it to set up a sqlite or mysql db. |
Hi @jenseng , apologies for taking so long to get back to you, just noticed you wrote back.
Thanks very much, |
Hello, @jenseng , just a friendly reminder that we'd love to resolve this warning and I'm totally willing to assist. Best, Ruby |
@rubyrailhead sorry for the radio silence here, and thanks for the info you provided. I'll dig into this in the next day or so. For starters i'll probably see about turning down the warnings a bit. |
Still getting this warning today.
|
I encountered the same issue just now. After some debugging, I found that the problem was caused by calling |
Hello, I'm seeing the following warning in schema.db:
WARNING: generating adapter-specific definition for posts_after_update__trigger due to a mismatch.
either there's a bug in hairtrigger or you've messed up your migrations and/or db :-/
Seems related to dependency versions, because in another installation of rails I see this instead:
no candidate create_trigger statement could be found, creating an adapter-specific one
https://github.com/rubyrailhead/hairtriggertest/blob/master/db/schema.rb#L40
Complete project showing the issue here:
https://github.com/rubyrailhead/hairtriggertest
see especially https://github.com/rubyrailhead/hairtriggertest/blob/master/db/migrate/20150528170434_add_localtimestamp_to_posts.rb
The text was updated successfully, but these errors were encountered: