Skip to content

Commit 400d9d4

Browse files
Add missing caveats for migration #change actions [ci-skip]
1 parent a89412b commit 400d9d4

File tree

1 file changed

+9
-9
lines changed

1 file changed

+9
-9
lines changed

guides/source/active_record_migrations.md

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -685,23 +685,23 @@ actions automatically. Below are some of the actions that `change` supports:
685685
* [`add_index`][]
686686
* [`add_reference`][]
687687
* [`add_timestamps`][]
688-
* [`change_column_comment`][] (must supply a `:from` and `:to` option)
689-
* [`change_column_default`][] (must supply a `:from` and `:to` option)
688+
* [`change_column_comment`][] (must supply `:from` and `:to` options)
689+
* [`change_column_default`][] (must supply `:from` and `:to` options)
690690
* [`change_column_null`][]
691-
* [`change_table_comment`][] (must supply a `:from` and `:to` option)
691+
* [`change_table_comment`][] (must supply `:from` and `:to` options)
692692
* [`create_join_table`][]
693693
* [`create_table`][]
694694
* `disable_extension`
695695
* [`drop_join_table`][]
696-
* [`drop_table`][] (must supply a block)
696+
* [`drop_table`][] (must supply table creation options and block)
697697
* `enable_extension`
698-
* [`remove_check_constraint`][] (must supply a constraint expression)
698+
* [`remove_check_constraint`][] (must supply original constraint expression)
699699
* [`remove_column`][] (must supply original type and column options)
700700
* [`remove_columns`][] (must supply original type and column options)
701-
* [`remove_foreign_key`][] (must supply a second table)
702-
* [`remove_index`][]
703-
* [`remove_reference`][]
704-
* [`remove_timestamps`][]
701+
* [`remove_foreign_key`][] (must supply other table and original options)
702+
* [`remove_index`][] (must supply columns and original options)
703+
* [`remove_reference`][] (must supply original options)
704+
* [`remove_timestamps`][] (must supply original options)
705705
* [`rename_column`][]
706706
* [`rename_index`][]
707707
* [`rename_table`][]

0 commit comments

Comments
 (0)