diff options
author | Zachary Scott <e@zzak.io> | 2014-06-20 12:57:23 -0700 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-06-20 12:57:23 -0700 |
commit | afa449c95f12cf85a6acdd3783b58f1843182b35 (patch) | |
tree | 839bb6c4b420792a97df87e1db0b8a0ae55236a1 /guides | |
parent | 081eec4ba68d161623791d4f6c885ce0d442f31c (diff) | |
parent | 876908dcebeaf1a04c93a753ff7f045649be3d75 (diff) | |
download | rails-afa449c95f12cf85a6acdd3783b58f1843182b35.tar.gz rails-afa449c95f12cf85a6acdd3783b58f1843182b35.tar.bz2 rails-afa449c95f12cf85a6acdd3783b58f1843182b35.zip |
Merge pull request #15624 from aditya-kapoor/add-warnings-on-guides
[ci skip] Add Tip for change_column_null and change_column_default in guides
Diffstat (limited to '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: |