Skip to content

Commit 860cff7

Browse files
authored
Merge pull request rails#54423 from maxfelsher/patch-1
Correct generated ID values in fixture docs [ci skip]
2 parents 3a5cb82 + 0f4bf4c commit 860cff7

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)