This project is archived and is in readonly mode.
postgresql_adapter doesn't disable referential integrity for pg 9.0
-
noelp
- Tag changed from active_record, postgres, postgresql to active_record, patch, postgres, postgresql
-
Sokolov Yura
+1 for this patch
-
olore
+1 This same fix can be applied to 2.x.
-
MatthewRudy
+1 on this I ended up coding the same thing.
You got there first
:) -
MatthewRudy
By the way, though.
Why did you just comment the old code?Here is my patch.
kind of the same,
but I bit cleaner (I feel) -
MatthewRudy
By the way, though.
Why did you just comment the old code?Here is my patch.
kind of the same,
but I grab the string a bit more cleanly (I feel)if query('SELECT version()')[0][0] =~ /PostgreSQL ([0-9.]+)/ major, minor, tiny = $1.split(".") (major.to_i * 10000) + (minor.to_i * 100) + tiny.to_i else 0 endmy branch on github. https://github.com/matthewrudy/rude-rails/tree/disable-keys-for-pos... -
MatthewRudy
In order to get by for the moment,
I have added this as an initializer.Check out my gist.
https://gist.github.com/709480 -
noelp
Matthew's Patch is cleaner. I have no idea why I left the old code commented out.
-
Santiago Pastorino
- State changed from new to resolved
- Importance changed from to Low
-
MatthewRudy
Thank you Santiago.
