Skip to content

Commit b29d794

Browse files
committed
use a more descriptive example. [ci skip]
follow up to 107526e
1 parent 107526e commit b29d794

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

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

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -167,17 +167,15 @@ def column_exists?(table_name, column_name, type = nil, options = {})
167167
#
168168
# ====== Change the primary key column type
169169
#
170-
# create_table(:categories_suppliers, id: :string) do |t|
171-
# t.column :category_id, :integer
172-
# t.column :supplier_id, :integer
170+
# create_table(:tags, id: :string) do |t|
171+
# t.column :label, :string
173172
# end
174173
#
175174
# generates:
176175
#
177-
# CREATE TABLE categories_suppliers (
176+
# CREATE TABLE tags (
178177
# id varchar PRIMARY KEY,
179-
# category_id int,
180-
# supplier_id int
178+
# label varchar
181179
# )
182180
#
183181
# ====== Do not add a primary key column

0 commit comments

Comments
 (0)