Fix migration version in doc of #up_only
This commit is contained in:
parent
79c3d5a67d
commit
46a2f93614
@ -740,7 +740,7 @@ def reversible
|
||||
# In the following example, the new column `published` will be given
|
||||
# the value `true` for all existing records.
|
||||
#
|
||||
# class AddPublishedToPosts < ActiveRecord::Migration[5.3]
|
||||
# class AddPublishedToPosts < ActiveRecord::Migration[5.2]
|
||||
# def change
|
||||
# add_column :posts, :published, :boolean, default: false
|
||||
# up_only do
|
||||
|
Loading…
Reference in New Issue
Block a user