diff options
author | Andrew White <pixeltrix@users.noreply.github.com> | 2017-01-17 15:24:17 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2017-01-17 15:24:17 +0000 |
commit | d665c611096ece7579475e381bfe45235515e8fb (patch) | |
tree | 353403787a9b5ec77cbea0606fd10282bc60ba53 /activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | |
parent | ab91a2be3aef3e2ca3bf4201186cde0afbbf7cf5 (diff) | |
parent | 24f264e9ca0f1ce3b16392b8ee6360480251f556 (diff) | |
download | rails-d665c611096ece7579475e381bfe45235515e8fb.tar.gz rails-d665c611096ece7579475e381bfe45235515e8fb.tar.bz2 rails-d665c611096ece7579475e381bfe45235515e8fb.zip |
Merge pull request #24743 from kamipo/sqlite_foreing_key_support
SQLite: Foreign Key Support
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract_adapter.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract_adapter.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb index cf2269bf12..348396de72 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb @@ -310,6 +310,12 @@ module ActiveRecord false end + # Does this adapter support creating foreign key constraints + # in the same statement as creating the table? + def supports_foreign_keys_in_create? + supports_foreign_keys? + end + # Does this adapter support views? def supports_views? false |