未验证 提交 0d90a881 编写于 作者: R Rafael França 提交者: GitHub

Merge pull request #31154 from bogdanvlviv/fix-migration-version-in-doc-of-up_only

Fix migration version in doc of #up_only
...@@ -740,7 +740,7 @@ def reversible ...@@ -740,7 +740,7 @@ def reversible
# In the following example, the new column `published` will be given # In the following example, the new column `published` will be given
# the value `true` for all existing records. # the value `true` for all existing records.
# #
# class AddPublishedToPosts < ActiveRecord::Migration[5.3] # class AddPublishedToPosts < ActiveRecord::Migration[5.2]
# def change # def change
# add_column :posts, :published, :boolean, default: false # add_column :posts, :published, :boolean, default: false
# up_only do # up_only do
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册