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 |