From 876908dcebeaf1a04c93a753ff7f045649be3d75 Mon Sep 17 00:00:00 2001 From: Aditya Kapoor Date: Sat, 21 Jun 2014 01:22:31 +0530 Subject: [ci skip] Add Tip for change_column_null and change_column_default in guides --- guides/source/active_record_migrations.md | 2 ++ 1 file changed, 2 insertions(+) (limited to 'guides/source') 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: -- cgit v1.2.3