Skip to content

Commit e0ee147

Browse files
Merge pull request rails#33417 from orhantoy/feature/tidy-up-add_index-examples
[ci skip] Tidy up formatting of (consecutive) examples
2 parents a53a88e + 68e209a commit e0ee147

File tree

1 file changed

+3
-12
lines changed

1 file changed

+3
-12
lines changed

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

Lines changed: 3 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -741,22 +741,13 @@ def rename_column(table_name, column_name, new_column_name)
741741
# ====== Creating an index with a specific operator class
742742
#
743743
# add_index(:developers, :name, using: 'gist', opclass: :gist_trgm_ops)
744-
#
745-
# generates:
746-
#
747-
# CREATE INDEX developers_on_name ON developers USING gist (name gist_trgm_ops) -- PostgreSQL
744+
# # CREATE INDEX developers_on_name ON developers USING gist (name gist_trgm_ops) -- PostgreSQL
748745
#
749746
# add_index(:developers, [:name, :city], using: 'gist', opclass: { city: :gist_trgm_ops })
750-
#
751-
# generates:
752-
#
753-
# CREATE INDEX developers_on_name_and_city ON developers USING gist (name, city gist_trgm_ops) -- PostgreSQL
747+
# # CREATE INDEX developers_on_name_and_city ON developers USING gist (name, city gist_trgm_ops) -- PostgreSQL
754748
#
755749
# add_index(:developers, [:name, :city], using: 'gist', opclass: :gist_trgm_ops)
756-
#
757-
# generates:
758-
#
759-
# CREATE INDEX developers_on_name_and_city ON developers USING gist (name gist_trgm_ops, city gist_trgm_ops) -- PostgreSQL
750+
# # CREATE INDEX developers_on_name_and_city ON developers USING gist (name gist_trgm_ops, city gist_trgm_ops) -- PostgreSQL
760751
#
761752
# Note: only supported by PostgreSQL
762753
#

0 commit comments

Comments
 (0)