-
Notifications
You must be signed in to change notification settings - Fork 18
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
Fix same length values #11
base: master
Are you sure you want to change the base?
Conversation
sergeykish
commented
Apr 27, 2017
That's a sketch, I'll make a cleanup |
78cd0c1
to
02764d2
Compare
Disabled |
02764d2
to
d825f0f
Compare
Returned back |
@bjhaid I'm not sure how to deal with previous rails versions
|
@sergeykish I am not sure I understand what problem you are attempting to solve with this PR. |
d825f0f
to
ccacb14
Compare
Have you verified what you have here: actually creates the records in the DB with the correct fields, I think this PR also introduces potential bugs, have you tried it with a hash that contains extraneous keys? BTW I think ensuring that the hashes passed in contains the same set of keys and a default supplied to normalize hashes with fewer keys should be the job of whatever calls bulk_insert and not bulk_insert. |
Sure, I already use code in production
produces
they are not present in the
produces
|
If the column has not null constraints then the query blows up, which is why I think determining what default to use is not the job of |