Updated the rails version in 7.1 to 7.2 in guide [skip ci]

This commit is contained in:
Akhil G Krishnan 2023-10-11 20:26:23 +05:30
parent bfd981ebb4
commit 41e86d4286
2 changed files with 7 additions and 7 deletions

@ -181,7 +181,7 @@ With no further work, `bin/rails server` will run our new shiny Rails app:
$ cd my_app
$ bin/rails server
=> Booting Puma
=> Rails 7.1.0 application starting in development
=> Rails 7.2.0 application starting in development
=> Run `bin/rails server --help` for more startup options
Puma starting in single mode...
* Version 3.12.1 (ruby 2.5.7-p206), codename: Llamas in Pajamas
@ -507,7 +507,7 @@ $ bin/rails destroy model Oops
```bash
$ bin/rails about
About your application's environment
Rails version 7.1.0
Rails version 7.2.0
Ruby version 2.7.0 (x86_64-linux)
RubyGems version 2.7.3
Rack version 2.0.4

@ -132,10 +132,10 @@ run the following in a new terminal:
```bash
$ rails --version
Rails 7.1.0
Rails 7.2.0
```
If it says something like "Rails 7.1.0", you are ready to continue.
If it says something like "Rails 7.2.0", you are ready to continue.
### Creating the Blog Application
@ -404,7 +404,7 @@ database-agnostic.
Let's take a look at the contents of our new migration file:
```ruby
class CreateArticles < ActiveRecord::Migration[7.1]
class CreateArticles < ActiveRecord::Migration[7.2]
def change
create_table :articles do |t|
t.string :title
@ -465,7 +465,7 @@ $ bin/rails console
You should see an `irb` prompt like:
```irb
Loading development environment (Rails 7.1.0)
Loading development environment (Rails 7.2.0)
irb(main):001:0>
```
@ -1342,7 +1342,7 @@ In addition to the model, Rails has also made a migration to create the
corresponding database table:
```ruby
class CreateComments < ActiveRecord::Migration[7.1]
class CreateComments < ActiveRecord::Migration[7.2]
def change
create_table :comments do |t|
t.string :commenter