aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/abstract
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2018-04-02 17:47:35 +0900
committerRyuta Kamizono <kamipo@gmail.com>2018-04-02 17:54:26 +0900
commitbdd42eeaf9e1858b10294764aeb99de18cfeef40 (patch)
tree057509fb58bc5825efe3c0d62a2bbd3f32c7eafe /activerecord/lib/active_record/connection_adapters/abstract
parent09b2348f7fc8d4e7191e70e06608c5909067e2aa (diff)
downloadrails-bdd42eeaf9e1858b10294764aeb99de18cfeef40.tar.gz
rails-bdd42eeaf9e1858b10294764aeb99de18cfeef40.tar.bz2
rails-bdd42eeaf9e1858b10294764aeb99de18cfeef40.zip
Remove `ForeignKeys` module which was introduced at #32299
To solve the problem #32299, just enough to introduce `fk_ignore_pattern` option. I don't think there is a need to expose these constants.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
index ef45fff9d2..e2147b7fcf 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb
@@ -1324,7 +1324,7 @@ module ActiveRecord
identifier = "#{table_name}_#{options.fetch(:column)}_fk"
hashed_identifier = Digest::SHA256.hexdigest(identifier).first(10)
- "#{ActiveRecord::ForeignKeys::PREFIX}_#{hashed_identifier}"
+ "fk_rails_#{hashed_identifier}"
end
end