Class: ActiveWarehouse::Bridge

Inherits:
ActiveRecord::Base
  • Object
show all
Defined in:
lib/active_warehouse/bridge.rb

Overview

Implements a bridge table.

Direct Known Subclasses

HierarchyBridge

Class Method Summary collapse

Class Method Details

.table_nameObject

Get the table name. By default the table name will be the name of the bridge in singular form.

Example: DepartmentHierarchyBridge will have a table called department_hierarchy_bridge



10
11
12
13
14
# File 'lib/active_warehouse/bridge.rb', line 10

def table_name
  name = self.name.demodulize.underscore
  set_table_name(name)
  name
end