Skip to content

Commit

Permalink
Merge pull request #46623 from cjilbert504/migration-comment-option-g…
Browse files Browse the repository at this point in the history
…rammar

Update text to include comma and add articles before nouns [ci-skip]

(cherry picked from commit d79b7d5)
  • Loading branch information
jonathanhefner committed Jan 24, 2023
1 parent 2c937d3 commit a54b49b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/source/active_record_migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -375,11 +375,11 @@ create_table :users do |t|
end
```

Also you can pass the `:comment` option with any description for the table
that will be stored in database itself and can be viewed with database administration
Also, you can pass the `:comment` option with any description for the table
that will be stored in the database itself and can be viewed with database administration
tools, such as MySQL Workbench or PgAdmin III. It's highly recommended to specify
comments in migrations for applications with large databases as it helps people
to understand data model and generate documentation.
to understand the data model and generate documentation.
Currently only the MySQL and PostgreSQL adapters support comments.

[`create_table`]: https://api.rubyonrails.org/classes/ActiveRecord/ConnectionAdapters/SchemaStatements.html#method-i-create_table
Expand Down

0 comments on commit a54b49b

Please sign in to comment.