Skip to content

Commit 0bf7afc

Browse files
committed
Use cached instance of o.index
1 parent 20d8750 commit 0bf7afc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

activerecord/lib/active_record/connection_adapters/abstract/schema_creation.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -104,7 +104,7 @@ def visit_CreateIndexDefinition(o)
104104
sql << "#{quote_column_name(index.name)} ON #{quote_table_name(index.table)}"
105105
sql << "USING #{index.using}" if supports_index_using? && index.using
106106
sql << "(#{quoted_columns(index)})"
107-
sql << "INCLUDE (#{quoted_include_columns(o.index.include)})" if supports_index_include? && o.index.include
107+
sql << "INCLUDE (#{quoted_include_columns(index.include)})" if supports_index_include? && index.include
108108
sql << "WHERE #{index.where}" if supports_partial_index? && index.where
109109

110110
sql.join(" ")

0 commit comments

Comments
 (0)