Skip to content
This repository was archived by the owner on Apr 26, 2019. It is now read-only.

Fix schema dump for postgres #13

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open

Fix schema dump for postgres #13

wants to merge 3 commits into from

Conversation

Fryie
Copy link

@Fryie Fryie commented Sep 28, 2014

I had trouble getting enum_tables to work with postgres. Specifically, the schema dumping would not work correctly.

I tracked the bug down to the use of the ActiveRecord "execute" method. As far as I know, that method is not portable across databases, since different database adapters may return the results in different formats.
Using #select_rows and #select_values should fix this. I have tested that this works (at least in my case) with both MySQL and Postgres.

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

Successfully merging this pull request may close these issues.

2 participants