Skip to content

Commit

Permalink
Merge pull request #46911 from p8/guides/activerecord-basics-learn-more
Browse files Browse the repository at this point in the history
Use a separate paragraph for the "learn more" link in AR basics guide [ci-skip]
  • Loading branch information
p8 committed Jan 6, 2023
2 parents ae569ea + b371668 commit 10c2b3a
Showing 1 changed file with 8 additions and 4 deletions.
12 changes: 8 additions & 4 deletions guides/source/active_record_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -357,8 +357,10 @@ Callbacks
Active Record callbacks allow you to attach code to certain events in the
life-cycle of your models. This enables you to add behavior to your models by
transparently executing code when those events occur, like when you create a new
record, update it, destroy it, and so on. You can learn more about callbacks in
the [Active Record Callbacks guide](active_record_callbacks.html).
record, update it, destroy it, and so on.

You can learn more about callbacks in the [Active Record Callbacks
guide](active_record_callbacks.html).

Migrations
----------
Expand Down Expand Up @@ -389,5 +391,7 @@ provides rollback features. To actually create the table, you'd run `bin/rails d
and to roll it back, `bin/rails db:rollback`.

Note that the above code is database-agnostic: it will run in MySQL,
PostgreSQL, Oracle, and others. You can learn more about migrations in the
[Active Record Migrations guide](active_record_migrations.html).
PostgreSQL, Oracle, and others.

You can learn more about migrations in the [Active Record Migrations
guide](active_record_migrations.html).

0 comments on commit 10c2b3a

Please sign in to comment.