Method: ConfigScripts::Seeds::SeedType#has_identifier_attributes

Defined in:
lib/config_scripts/seeds/seed_type.rb

#has_identifier_attributes(*attributes) ⇒ Array<Symbol>

This method defines the attributes used to generate a unique identifier for a record.

Parameters:

  • attributes (Array<Symbol>)

    The attributes that form the unique identifier.

Returns:

  • (Array<Symbol>)

    The attributes.



114
115
116
# File 'lib/config_scripts/seeds/seed_type.rb', line 114

def has_identifier_attributes(*attributes)
  @identifier_attributes = attributes
end