diff options
author | Aditya Kapoor <aditya.kapoor@vinsol.com> | 2014-06-21 01:22:31 +0530 |
---|---|---|
committer | Aditya Kapoor <aditya.kapoor@vinsol.com> | 2014-06-21 01:22:31 +0530 |
commit | 876908dcebeaf1a04c93a753ff7f045649be3d75 (patch) | |
tree | 7aa948c967fab7781cb7c853c73721ae6cacdea5 | |
parent | 042f185ccb6fbd9bc7503d7104623ce34e4d6751 (diff) | |
download | rails-876908dcebeaf1a04c93a753ff7f045649be3d75.tar.gz rails-876908dcebeaf1a04c93a753ff7f045649be3d75.tar.bz2 rails-876908dcebeaf1a04c93a753ff7f045649be3d75.zip |
[ci skip] Add Tip for change_column_null and change_column_default in guides
-rw-r--r-- | guides/source/active_record_migrations.md | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md index 5a550d9e55..628ff8b5bd 100644 --- a/guides/source/active_record_migrations.md +++ b/guides/source/active_record_migrations.md @@ -434,6 +434,8 @@ change_column_default :products, :approved, false This sets `:name` field on products to a `NOT NULL` column and the default value of the `:approved` field to false. +TIP: Unlike `change_column` (and `change_column_default`), `change_column_null` is reversible. + ### Column Modifiers Column modifiers can be applied when creating or changing a column: |