Skip to content

Commit

Permalink
[ci skip] Add Tip for change_column_null and change_column_default in…
Browse files Browse the repository at this point in the history
… guides
  • Loading branch information
Aditya Kapoor committed Jun 20, 2014
1 parent 042f185 commit 876908d
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions guides/source/active_record_migrations.md
Expand Up @@ -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:
Expand Down

0 comments on commit 876908d

Please sign in to comment.