aboutsummaryrefslogtreecommitdiffstats
path: root/guides
diff options
context:
space:
mode:
authorLukas Zapletal <lzap+git@redhat.com>2018-08-09 11:14:56 +0200
committerLukas Zapletal <lzap+git@redhat.com>2018-08-09 11:14:56 +0200
commit847e6915268e1ff1a1aeb5c48c7d9af01e2ff383 (patch)
treef71a8fb2414f46e006b380f59bd937579a52d84e /guides
parent3000c1490565b3a21376d6444cb6fe24dfe4e383 (diff)
downloadrails-847e6915268e1ff1a1aeb5c48c7d9af01e2ff383.tar.gz
rails-847e6915268e1ff1a1aeb5c48c7d9af01e2ff383.tar.bz2
rails-847e6915268e1ff1a1aeb5c48c7d9af01e2ff383.zip
ActiveRecord Guide - sqlite3 foreign keys note
Diffstat (limited to 'guides')
-rw-r--r--guides/source/active_record_migrations.md4
1 files changed, 4 insertions, 0 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md
index cfa444fda0..be5af133ff 100644
--- a/guides/source/active_record_migrations.md
+++ b/guides/source/active_record_migrations.md
@@ -491,6 +491,10 @@ NOTE: Active Record only supports single column foreign keys. `execute` and
`structure.sql` are required to use composite foreign keys. See
[Schema Dumping and You](#schema-dumping-and-you).
+NOTE: At this time, only the mysql, mysql2 and postgresql adapters support
+foreign keys. Implementation for sqlite3 is partial, keys are created for new
+tables but not for existing tables via `ALTER TABLE` statement.
+
Removing a foreign key is easy as well:
```ruby