File tree Expand file tree Collapse file tree 1 file changed +6
-6
lines changed
lib/active_record/connection_adapters/cockroachdb Expand file tree Collapse file tree 1 file changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -114,12 +114,12 @@ def schema_names
114114
115115 def add_index ( table_name , column_name , **options )
116116 super
117- rescue ActiveRecord ::StatementInvalid => error
118- if debugging? && error . cause . class == PG ::FeatureNotSupported
119- warn "#{ error } \n \n This error will be ignored and the index will not be created.\n \n "
120- else
121- raise error
122- end
117+ # rescue ActiveRecord::StatementInvalid => error
118+ # if debugging? && error.cause.class == PG::FeatureNotSupported
119+ # warn "#{error}\n\nThis error will be ignored and the index will not be created.\n\n"
120+ # else
121+ # raise error
122+ # end
123123 end
124124
125125 # ActiveRecord allows for tables to exist without primary keys.
You can’t perform that action at this time.
0 commit comments