Skip to content

Commit

Permalink
[ci skip] Tidy up formatting of examples
Browse files Browse the repository at this point in the history
The consecutive verbatim blocks were being merged making the output look weird.
  • Loading branch information
orhantoy committed Jul 22, 2018
1 parent 20543c0 commit 68e209a
Showing 1 changed file with 3 additions and 12 deletions.
Expand Up @@ -741,22 +741,13 @@ def rename_column(table_name, column_name, new_column_name)
# ====== Creating an index with a specific operator class
#
# add_index(:developers, :name, using: 'gist', opclass: :gist_trgm_ops)
#
# generates:
#
# CREATE INDEX developers_on_name ON developers USING gist (name gist_trgm_ops) -- PostgreSQL
# # CREATE INDEX developers_on_name ON developers USING gist (name gist_trgm_ops) -- PostgreSQL
#
# add_index(:developers, [:name, :city], using: 'gist', opclass: { city: :gist_trgm_ops })
#
# generates:
#
# CREATE INDEX developers_on_name_and_city ON developers USING gist (name, city gist_trgm_ops) -- PostgreSQL
# # CREATE INDEX developers_on_name_and_city ON developers USING gist (name, city gist_trgm_ops) -- PostgreSQL
#
# add_index(:developers, [:name, :city], using: 'gist', opclass: :gist_trgm_ops)
#
# generates:
#
# CREATE INDEX developers_on_name_and_city ON developers USING gist (name gist_trgm_ops, city gist_trgm_ops) -- PostgreSQL
# # CREATE INDEX developers_on_name_and_city ON developers USING gist (name gist_trgm_ops, city gist_trgm_ops) -- PostgreSQL
#
# Note: only supported by PostgreSQL
#
Expand Down

0 comments on commit 68e209a

Please sign in to comment.