-
Notifications
You must be signed in to change notification settings - Fork 16
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
rails 4 postgres 9.4.5 #13
Comments
Not all tables have primary keys. Some use compound keys. ---Sent from Boxer | http://getboxer.com On 21 February 2016 at 06:02:37 GMT+7, Michael Madison [email protected] wrote:Primary keys are not set in Rails 4, postgres using your migrations. Weird. —Reply to this email directly or view it on GitHub. |
But even the primary keys I see you explicitly set are ignored by Postgres. Sent from my iPhoneMichael K. Madison II. On Feb 20, 2016, at 11:15 PM, Matt Beedle [email protected] wrote: Not all tables have primary keys. Some use compound keys. ---Sent from Boxer | http://getboxer.com On 21 February 2016 at 06:02:37 GMT+7, Michael Madison < — |
I've actually just refactored the migrations in a backwards incompatible way and bumped the gem to 2.0. I removed primary keys from several tables and used composite keys instead, to reflect the way the data is actually organised in the USDA source. Also, added a unique index to I also cut import time down to about 2 minutes from 60+ if you are prepared to add the |
Primary keys are not set in Rails 4, postgres using your migrations. Weird.
The text was updated successfully, but these errors were encountered: