diogob / postgres-copy

Simple PostgreSQL's COPY command support in ActiveRecord models
MIT License
431 stars 63 forks source link

Support NULL option parmeter #36

Closed xorphitus closed 7 years ago

xorphitus commented 7 years ago

I think that the NULL option parameter is useful for using COPY FROM command. So add an option to copy_from method for it.

diogob commented 7 years ago

Thanks for the PR :D Could you add some test coverage for this use case?

xorphitus commented 7 years ago

Sure. Please wait for a while.

xorphitus commented 7 years ago

I added 2 test cases. Please confirm them.

diogob commented 7 years ago

@xorphitus thanks for the PR. I'm merging this and releasing a minor version