activerecord-clean-db-structure icon indicating copy to clipboard operation
activerecord-clean-db-structure copied to clipboard

skip standalone sequences

Open xronos-i-am opened this issue 6 years ago • 2 comments
trafficstars

Sequence created without table should not be dropped from dump

xronos-i-am avatar Sep 02 '19 08:09 xronos-i-am

@xronos-i-am Is this still desired functionality? Do you have a scenario where a sequence is created outside of a table, where it shouldn't be dumped?

I could see a scenario where someone creates a sequence owned by some column, and we'd want to dump it.

If you could explain the use case more, that would help. Thanks!

andyatkinson avatar Aug 29 '24 02:08 andyatkinson

Hi. Yes it is still desireable. We use sequences without tables sometimes. When we assume that a related table may appear in the future, but we don't need it for now. We use sequence as autoincremented counter in that case

xronos-i-am avatar Oct 22 '24 06:10 xronos-i-am