class Marten::DB::Management::Index
- Marten::DB::Management::Index
- Reference
- Object
Overview
Represents an index used when creating or altering tables.
Included Modules
Defined in:
marten/db/management/index.crConstructors
Instance Method Summary
- 
        #==(other : self)
        
          Returns true if the other index corresponds to the same index configuration. 
- 
        #clone
        
          Returns a copy of the index. 
- 
        #column_names : Array(String)
        
          Returns the column names that are part of the index. 
- 
        #name : String
        
          Returns the index name. 
- 
        #serialize_args : String
        
          Returns a serialized version of the index arguments to be used when generating migrations. 
Instance methods inherited from module Marten::DB::CanFormatStringsOrSymbols
  
  
    
      format_string_or_symbol(value : String)
    format_string_or_symbol
    
  
    
    
  
    
    
    
  
    
    
    
  
Constructor Detail
Instance Method Detail
        
        def serialize_args : String
        #
      
      
        Returns a serialized version of the index arguments to be used when generating migrations.
The returned string will be used in the context of add_index / index statements in generated migrations.