Skip to content

Commit

Permalink
Merge pull request rails#34909 from davidalee/patch-2
Browse files Browse the repository at this point in the history
Specify the type for the auto-generated primary key
  • Loading branch information
sikachu authored Jan 10, 2019
2 parents 3c10edc + 6d2105b commit 2787474
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions guides/source/active_record_basics.md
Original file line number Diff line number Diff line change
Expand Up @@ -105,9 +105,9 @@ depending on the purpose of these columns.
fields that Active Record will look for when you create associations between
your models.
* **Primary keys** - By default, Active Record will use an integer column named
`id` as the table's primary key. When using [Active Record
Migrations](active_record_migrations.html) to create your tables, this column will be
automatically created.
`id` as the table's primary key (`bigint` for Postgres and MYSQL, `integer`
for SQLite). When using [Active Record Migrations](active_record_migrations.html)
to create your tables, this column will be automatically created.

There are also some optional column names that will add additional features
to Active Record instances:
Expand Down

0 comments on commit 2787474

Please sign in to comment.