method

generate_primary_key

Importance_0
v7.1.3.4 - Show latest stable - 0 notes - Class: PrimaryKeyError
generate_primary_key() public

No documentation

This method has no description. You can help the Ruby on Rails community by adding new notes.

Hide source
# File activerecord/lib/active_record/fixture_set/table_row.rb, line 119
        def generate_primary_key
          pk = model_metadata.primary_key_name

          unless column_defined?(pk)
            @row[pk] = ActiveRecord::FixtureSet.identify(@label, model_metadata.column_type(pk))
          end
        end
Register or log in to add new notes.