Skip to content

Commit 31818ed

Browse files
authored
Merge pull request rails#53005 from fkmy/fix-migration-version-in-guide
[ci-skip][docs] Fix version of the migration in the guide to the current Rails version
2 parents 9c41f58 + 8b901bb commit 31818ed

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

guides/source/active_record_postgresql.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ NOTE: You need to enable the `hstore` extension to use hstore.
102102

103103
```ruby
104104
# db/migrate/20131009135255_create_profiles.rb
105-
class CreateProfiles < ActiveRecord::Migration[7.0]
105+
class CreateProfiles < ActiveRecord::Migration[8.0]
106106
enable_extension 'hstore' unless extension_enabled?('hstore')
107107
create_table :profiles do |t|
108108
t.hstore 'settings'

guides/source/association_basics.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3137,7 +3137,7 @@ Although the `:counter_cache` option is specified on the model with the
31373137
`books_count` column to the `Author` model:
31383138

31393139
```ruby
3140-
class AddBooksCountToAuthors < ActiveRecord::Migration[6.0]
3140+
class AddBooksCountToAuthors < ActiveRecord::Migration[8.0]
31413141
def change
31423142
add_column :authors, :books_count, :integer, default: 0, null: false
31433143
end

0 commit comments

Comments
 (0)