Method: Webhookdb::Replicator::Base#requires_sequence?
- Defined in:
- lib/webhookdb/replicator/base.rb
#requires_sequence? ⇒ Boolean
Some integrations require sequences, like when upserting rows with numerical unique ids (if they were random values like UUIDs we could generate them and not use a sequence). In those cases, the integrations can mark themselves as requiring a sequence.
The sequence will be created in the *application database*, but it used primarily when inserting rows into the *organization/replication database*. This is necessary because things like sequences are not possible to migrate when moving replication databases.
619 620 621 |
# File 'lib/webhookdb/replicator/base.rb', line 619 def requires_sequence? return false end |