Module: ActiveRecord

Defined in:
lib/activerecord-multi-tenant/habtm.rb,
lib/activerecord-multi-tenant/query_rewriter.rb,
lib/activerecord-multi-tenant/migrations.rb,
lib/activerecord-multi-tenant/migrations.rb

Overview

This module extension is a monkey patch to the ActiveRecord::Associations::ClassMethods module. It overrides the has_and_belongs_to_many method to add the tenant_id to the join table if the tenant_enabled option is set to true.

Defined Under Namespace

Modules: Associations, ConnectionAdapters, QueryMethods Classes: SchemaDumper