aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
diff options
context:
space:
mode:
authorRyuta Kamizono <kamipo@gmail.com>2017-02-27 04:00:24 +0900
committerRyuta Kamizono <kamipo@gmail.com>2017-02-27 06:27:49 +0900
commit64e494f7486f0ea6c34707dfe5dd6f19627798af (patch)
treed60016734c06a410f41733ccb77c14339e576e03 /activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
parent7888f4fae0b0d0b63fde1645feb61c588bb4c010 (diff)
downloadrails-64e494f7486f0ea6c34707dfe5dd6f19627798af.tar.gz
rails-64e494f7486f0ea6c34707dfe5dd6f19627798af.tar.bz2
rails-64e494f7486f0ea6c34707dfe5dd6f19627798af.zip
Use `max_identifier_length` for `index_name_length` in PostgreSQL adapter
Actually `index_name_length` depend on `max_identifier_length`, not always 63.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb')
-rw-r--r--activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb4
1 files changed, 0 insertions, 4 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
index f91547d148..afef0da5c7 100644
--- a/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
+++ b/activerecord/lib/active_record/connection_adapters/postgresql/schema_statements.rb
@@ -615,10 +615,6 @@ module ActiveRecord
end
end
- def index_name_length
- 63
- end
-
# Maps logical Rails types to PostgreSQL-specific data types.
def type_to_sql(type, limit: nil, precision: nil, scale: nil, array: nil, **) # :nodoc:
sql = \