1
0
Fork 0
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:
Prem Sichanugrist 2019-01-10 10:55:37 +09:00 committed by GitHub
commit 2787474ae3
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: