Skip to content

Commit

Permalink
Remove unnecessary note for primary_key in the guide
Browse files Browse the repository at this point in the history
  • Loading branch information
pocke committed Apr 18, 2022
1 parent c9e5057 commit 70a0754
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions guides/source/active_record_migrations.md
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 70a0754

Please sign in to comment.