Skip to content

Postgres jsonb field defaults not annotating #305

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

Closed
chuck-john opened this issue Dec 30, 2015 · 5 comments
Closed

Postgres jsonb field defaults not annotating #305

chuck-john opened this issue Dec 30, 2015 · 5 comments

Comments

@chuck-john
Copy link

Running annotations on a jsonb field in a postgres database does not notate default values.

@ctran
Copy link
Owner

ctran commented Dec 30, 2015

Are you saying it used to do it or it never does?

@chuck-john
Copy link
Author

It used to. Version 2.6.10 annotated our project's jsonb fields' default values. The latest release, 2.7.0, removed those annotations. I don't see an option to toggle default model values in the auto_annotate rake task.

@ctran
Copy link
Owner

ctran commented Dec 31, 2015

I'm not sure what would have caused this. Could you provide me with a sample model + migration file to reproduce tihs?

@chuck-john
Copy link
Author

Model and Migration

Rails 4.2.5
Postgres 9.4.5
Annotate 2.7.0

@ctran
Copy link
Owner

ctran commented Dec 31, 2015

This is actually submitted by #250. I don't recall the reason behind this change though.

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

No branches or pull requests

2 participants