database_cleaner icon indicating copy to clipboard operation
database_cleaner copied to clipboard

`pre_count` option for :truncate isn't included in the documentation

Open prostko opened this issue 5 years ago • 2 comments
trafficstars

Is there any reason pre_count isn't included in the documentation?

It does appear in the error message when trying to pass an unavailable parameter as an option to :truncate. (BTW thanks for that, super helpful)

I'll open a PR against this issue in case it just never got added.

Thanks

prostko avatar Sep 28 '20 14:09 prostko

@prostko Good question. It is probably an oversight. Could you submit a PR for this issue?

Thanks!

etagwerker avatar Oct 09 '20 14:10 etagwerker

https://github.com/DatabaseCleaner/database_cleaner/pull/666

Looks like it is included in the docs, but for the ActiveRecord lib.

Submitted a PR to update the link here.

(Lucky number 666 🤣 )

Thanks again

prostko avatar Oct 09 '20 15:10 prostko