diff options
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb index a59a5ac2ea..879a47f021 100644 --- a/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb +++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_statements.rb @@ -167,17 +167,15 @@ module ActiveRecord # # ====== Change the primary key column type # - # create_table(:categories_suppliers, id: :string) do |t| - # t.column :category_id, :integer - # t.column :supplier_id, :integer + # create_table(:tags, id: :string) do |t| + # t.column :label, :string # end # # generates: # - # CREATE TABLE categories_suppliers ( + # CREATE TABLE tags ( # id varchar PRIMARY KEY, - # category_id int, - # supplier_id int + # label varchar # ) # # ====== Do not add a primary key column |