未验证 提交 c805c5ac 编写于 作者: R Ryuta Kamizono 提交者: GitHub

Merge pull request #38851 from tiramizoo/change-example-in-change-table

Add an example how to change column in "change_table" block

[ci skip]
......@@ -421,6 +421,12 @@ def drop_join_table(table_1, table_2, **options)
# t.column :name, :string, limit: 60
# end
#
# ====== Change type of a column
#
# change_table(:suppliers) do |t|
# t.change :metadata, :json
# end
#
# ====== Add 2 integer columns
#
# change_table(:suppliers) do |t|
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册