mirror of
https://github.com/rails/rails.git
synced 2022-11-09 12:12:34 -05:00
Merge pull request #34909 from davidalee/patch-2
Specify the type for the auto-generated primary key
This commit is contained in:
commit
2787474ae3
1 changed files with 3 additions and 3 deletions
|
@ -105,9 +105,9 @@ depending on the purpose of these columns.
|
||||||
fields that Active Record will look for when you create associations between
|
fields that Active Record will look for when you create associations between
|
||||||
your models.
|
your models.
|
||||||
* **Primary keys** - By default, Active Record will use an integer column named
|
* **Primary keys** - By default, Active Record will use an integer column named
|
||||||
`id` as the table's primary key. When using [Active Record
|
`id` as the table's primary key (`bigint` for Postgres and MYSQL, `integer`
|
||||||
Migrations](active_record_migrations.html) to create your tables, this column will be
|
for SQLite). When using [Active Record Migrations](active_record_migrations.html)
|
||||||
automatically created.
|
to create your tables, this column will be automatically created.
|
||||||
|
|
||||||
There are also some optional column names that will add additional features
|
There are also some optional column names that will add additional features
|
||||||
to Active Record instances:
|
to Active Record instances:
|
||||||
|
|
Loading…
Reference in a new issue