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

Add support for PostgreSQL data types: hstore, array, json, etc #27

Open
gangster opened this issue Jun 13, 2015 · 5 comments
Open

Add support for PostgreSQL data types: hstore, array, json, etc #27

gangster opened this issue Jun 13, 2015 · 5 comments

Comments

@gangster
Copy link

Support for the PostgreSQL data types would be a nice addition to this library, IMHO. See: http://edgeguides.rubyonrails.org/active_record_postgresql.html

@theodorton
Copy link
Owner

Thank you:) Would you like to give it a try? It should be fairly easy to extend the field handler to handle those types.

See https://github.com/theodorton/yard-activerecord/blob/develop/lib/yard-activerecord/fields/field_handler.rb

@gangster
Copy link
Author

Yeah, I just got it working. I'll be submitting a PR a little later =)

@xtagon
Copy link

xtagon commented Sep 25, 2016

Is there a way to get this working when the app doesn't have a schema.rb file? I use structure.sql dumps instead because not everything in schema.rb is supported by my usage of Postgres.

@theodorton
Copy link
Owner

@xtagon:
I've been putting of rewriting this with a 2.0 version that will use runtime introspection to generate the documentation. When/if that goes live this will remove the dependency on schema.rb.

If you want to help contribute, let me know and we can discuss next steps.

@xtagon
Copy link

xtagon commented Sep 27, 2016

@theodorton I'd be happy to help out. I can't commit to anything crazy right now but I'd definitely do testing and stuff like that. Feel free to e-mail me directly if you want to go over things.

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

No branches or pull requests

3 participants