Skip to content

Commit

Permalink
Merge pull request rails#44911 from pocke/Remove_unnecessary_note_for…
Browse files Browse the repository at this point in the history
…_primary_key_in_the_guide

Remove unnecessary note for primary_key in the guide [ci-skip]
  • Loading branch information
jonathanhefner committed Apr 18, 2022
2 parents 3c6da6a + 70a0754 commit 8ace32c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guides/source/active_record_migrations.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,10 +352,10 @@ end
which creates a `products` table with a column called `name`.

By default, `create_table` will create a primary key called `id`. You can change
the name of the primary key with the `:primary_key` option (don't forget to
update the corresponding model) or, if you don't want a primary key at all, you
can pass the option `id: false`. If you need to pass database specific options
you can place an SQL fragment in the `:options` option. For example:
the name of the primary key with the `:primary_key` option or, if you don't
want a primary key at all, you can pass the option `id: false`. If you need to
pass database specific options you can place an SQL fragment in the `:options`
option. For example:

```ruby
create_table :products, options: "ENGINE=BLACKHOLE" do |t|
Expand Down

0 comments on commit 8ace32c

Please sign in to comment.