Class: SchemaSherlock::UsageTracker
- Inherits:
-
Object
- Object
- SchemaSherlock::UsageTracker
- Defined in:
- lib/schema_sherlock/usage_tracker.rb
Class Attribute Summary collapse
-
.binary_index ⇒ Object
Returns the value of attribute binary_index.
Class Method Summary collapse
Class Attribute Details
.binary_index ⇒ Object
Returns the value of attribute binary_index.
10 11 12 |
# File 'lib/schema_sherlock/usage_tracker.rb', line 10 def binary_index @binary_index end |
Class Method Details
.track_foreign_key_usage(model_class) ⇒ Object
12 13 14 15 16 |
# File 'lib/schema_sherlock/usage_tracker.rb', line 12 def track_foreign_key_usage(model_class) return {} unless SchemaSherlock.configuration.min_usage_threshold scan_codebase_for_usage(model_class) end |