Method: Webhookdb::Replicator::Base#schema_and_table_symbols

Defined in:
lib/webhookdb/replicator/base.rb

#schema_and_table_symbolsArray<Symbol>

Return a tuple of (schema, table) based on the organization’s replication schema, and the service integration’s table name.

Returns:

  • (Array<Symbol>)


82
83
84
85
86
# File 'lib/webhookdb/replicator/base.rb', line 82

def schema_and_table_symbols
  sch = self.service_integration.organization&.replication_schema&.to_sym || :public
  tbl = self.service_integration.table_name.to_sym
  return [sch, tbl]
end