lib/active_replicas/railtie.rb in active_replicas-0.2.1 vs lib/active_replicas/railtie.rb in active_replicas-0.2.2
- old
+ new
@@ -27,11 +27,11 @@
:exec_query, :prepared_statements, :query_cache_enabled, :quote,
:quote_column_name, :quote_table_name,
:quote_table_name_for_assignment, :raw_connection, :reconnect!,
:sanitize_limit, :schema_cache, :select, :select_all, :select_one,
:select_rows, :select_value, :select_values, :substitute_at, :to_sql,
- :type_cast, :uncached, :valid_type?, :verify!
+ :type_cast, :uncached, :valid_type?, :verify!, :visitor
]
).uniq
# Rails methods that translate to SQL DDL (data definition language).
DDL_METHODS = [
@@ -65,14 +65,14 @@
DDL_METHODS +
CRUD_METHODS +
SUPPORTS_METHODS +
[
:add_transaction_record, :assume_migrated_upto_version,
- :begin_db_transaction, :commit_db_transaction,
+ :begin_transaction, :begin_db_transaction, :commit_db_transaction,
:disable_referential_integrity, :foreign_keys, :indexes,
:native_database_types, :prefetch_primary_key?, :primary_key,
- :rollback_db_transaction, :tables, :table_exists?, :transaction,
- :transaction_state
+ :rollback_transaction, :rollback_db_transaction, :tables,
+ :table_exists?, :transaction, :transaction_state
]
).uniq
def self.hijack_active_record(proxy_configuration, overrides: [])
ProxyingConnection.generate_replica_delegations