-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Unsupported field datatype: uuid #1681
Comments
Try to add
to your rails_admin initializer |
It does not work for me :( It still cannot search by ID. |
I tried on a brand new Rails 4.0.4, Ruby 2.1 and latest rails admin and seems to work for me |
Adding the type for Uuid initially seemed to worked for me, but now when trying to create a model that "belongs_to" another (where the belongs_to id is a UUID) I'm getting an error from the DB: It looks like the UUID is somehow being blanked out before being sent to the DB. Anyone been able to get this to work? I'm using Rails 4.1 and Ruby 2.1 |
Nevermind, my mistake (I wasn't including data for a DB required field that happened to be a UUID, but the error isn't actually UUID related). |
I can confirm this issue on Rails 4.1.4, Ruby 2.1.2 and PostgreSQL 9.3.4.2. The error occurs in this project's code base: https://github.com/SexualHealthInnovations/PrivateResults Running:
Happy to provide any other information that I can. |
@tank-bohr 's solution worked for me for current version in master. Rails 4.2.0.rc1, Postgresql. |
@brain-geek Are you able to filter on uuid? I implemented @tank-bohr's fix and display works, but I cannot search or filter any of my uuid columns. |
Thanks, the proposed solution works for other datatypes as well (Tested with SQL Server varchar) |
Thanks, I got this error after getting the 'Ahoy' gem, and the proposed solution fixed it! |
I think this can be closed: https://github.com/sferik/rails_admin/blob/master/lib/rails_admin/config/fields/types/uuid.rb |
I use postgres and active-record-postgis adapter
The text was updated successfully, but these errors were encountered: