Skip to content

Commit

Permalink
Merge pull request #38851 from tiramizoo/change-example-in-change-table
Browse files Browse the repository at this point in the history
Add an example how to change column in "change_table" block

[ci skip]
  • Loading branch information
kamipo committed Mar 31, 2020
2 parents 1239b22 + 46b8934 commit c805c5a
Showing 1 changed file with 6 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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|
Expand Down

0 comments on commit c805c5a

Please sign in to comment.