module ActiveRecord
The PostgresSQL Adapter's ReferentialIntegrity module can disable and re-enable foreign key constraints by disabling all table triggers. Since triggers are not available in CockroachDB
, we have to remove foreign keys and re-add them via the ActiveRecord
API.
This module is commonly used to load test fixture data without having to worry about the order in which that data is loaded.
Constants
- COCKROACH_DB_ADAPTER_VERSION