Skip to content

Commit 0f4bf4c

Browse files
authored
Correct generated id values in fixture docs
The previous values were probably correct when this section of the documentation was added, but the algorithm used by `ActiveRecord::FixtureSet.identify` has changed since then.
1 parent 3a5cb82 commit 0f4bf4c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

activerecord/lib/active_record/fixtures.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -242,10 +242,10 @@ class FixtureClassNotFound < ActiveRecord::ActiveRecordError # :nodoc:
242242
# and one for the humans. Why don't we generate the primary key instead?
243243
# Hashing each fixture's label yields a consistent ID:
244244
#
245-
# george: # generated id: 503576764
245+
# george: # generated id: 380982691
246246
# name: George the Monkey
247247
#
248-
# reginald: # generated id: 324201669
248+
# reginald: # generated id: 41001176
249249
# name: Reginald the Pirate
250250
#
251251
# Active Record looks at the fixture's model class, discovers the correct

0 commit comments

Comments
 (0)