Skip to content

Commit 992dbd7

Browse files
committed
fix rails#50189 docs section reverting previous migrations mismatch code example
1 parent b504498 commit 992dbd7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

guides/source/active_record_migrations.md

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -854,6 +854,10 @@ class DontUseDistributorsViewMigration < ActiveRecord::Migration[8.0]
854854
def change
855855
revert do
856856
# copy-pasted code from ExampleMigration
857+
create_table :distributors do |t|
858+
t.string :zipcode
859+
end
860+
857861
reversible do |direction|
858862
direction.up do
859863
# create a distributors view

0 commit comments

Comments
 (0)