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

hstore default not properly recognized on rails 4.2 #229

Closed
morgoth opened this issue Jan 21, 2015 · 1 comment
Closed

hstore default not properly recognized on rails 4.2 #229

morgoth opened this issue Jan 21, 2015 · 1 comment

Comments

@morgoth
Copy link

morgoth commented Jan 21, 2015

There is ticket about changing format on rails 4.2 #212
Additionally it not properly recognize default value of hstore column:

-#  payment_failed_log                  :hstore           default({}), not null
+#  payment_failed_log                  :hstore           default(""), not null
@morgoth
Copy link
Author

morgoth commented Jan 25, 2015

Actually this is how it works in PostreSQL - ""::hstore is the default that gives {} in Rails, so I'm not sure if we should do anything about it.
From my structure.sql:

...
my_hstore_column hstore DEFAULT ''::hstore NOT NULL,
...

@ctran ctran added the non-issue label Mar 7, 2015
@ctran ctran closed this as completed May 26, 2015
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