aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
diff options
context:
space:
mode:
authorAndrew White <pixeltrix@users.noreply.github.com>2017-01-17 15:24:17 +0000
committerGitHub <noreply@github.com>2017-01-17 15:24:17 +0000
commitd665c611096ece7579475e381bfe45235515e8fb (patch)
tree353403787a9b5ec77cbea0606fd10282bc60ba53 /activerecord/lib/active_record/connection_adapters/abstract_adapter.rb
parentab91a2be3aef3e2ca3bf4201186cde0afbbf7cf5 (diff)
parent24f264e9ca0f1ce3b16392b8ee6360480251f556 (diff)
downloadrails-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.rb6
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