Class: DatabaseConsistency::Writers::Autofix::AssociationMissingIndex

Inherits:
MigrationBase
  • Object
show all
Defined in:
lib/database_consistency/writers/autofix/association_missing_index.rb

Overview

:nodoc:

Direct Known Subclasses

HasOneMissingUniqueIndex

Instance Attribute Summary

Attributes inherited from Base

#report

Instance Method Summary collapse

Methods inherited from MigrationBase

#fix!

Methods included from Helpers::Migration

#migration_configuration, #migration_path, #migration_path_pattern

Methods inherited from Base

#initialize

Constructor Details

This class inherits a constructor from DatabaseConsistency::Writers::Autofix::Base

Instance Method Details

#attributesObject



7
8
9
10
11
12
13
# File 'lib/database_consistency/writers/autofix/association_missing_index.rb', line 7

def attributes
  {
    table_name: report.table_name,
    columns: columns,
    index_name: index_name
  }
end