aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPrem Sichanugrist <s@sikac.hu>2019-01-10 10:55:37 +0900
committerGitHub <noreply@github.com>2019-01-10 10:55:37 +0900
commit2787474ae30c753afadb27949d9a12daf7f89087 (patch)
treee6daa6381c0ac9bdb8368ed4291f1e5435eb2013
parent3c10edcfaf904ed6e4d68b07354066d2f6e28335 (diff)
parent6d2105bb6327d75b936f09cd4c34222d82e9e722 (diff)
downloadrails-2787474ae30c753afadb27949d9a12daf7f89087.tar.gz
rails-2787474ae30c753afadb27949d9a12daf7f89087.tar.bz2
rails-2787474ae30c753afadb27949d9a12daf7f89087.zip
Merge pull request #34909 from davidalee/patch-2
Specify the type for the auto-generated primary key
-rw-r--r--guides/source/active_record_basics.md6
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/active_record_basics.md b/guides/source/active_record_basics.md
index a67e2924d7..b0d4bbd2c0 100644
--- a/guides/source/active_record_basics.md
+++ b/guides/source/active_record_basics.md
@@ -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: