diff options
author | Zachary Scott <e@zzak.io> | 2014-12-14 20:42:38 -0500 |
---|---|---|
committer | Zachary Scott <e@zzak.io> | 2014-12-14 20:42:38 -0500 |
commit | 6b96a1eae12dc0065d2e2d79f9b9f6929bf04a80 (patch) | |
tree | 782f98a3d1779143b836e241b5c554d0ce6ddfbf /guides/source/active_record_migrations.md | |
parent | 7607687c9166f8b2f8aa4d107bdbaadb99d4bb43 (diff) | |
download | rails-6b96a1eae12dc0065d2e2d79f9b9f6929bf04a80.tar.gz rails-6b96a1eae12dc0065d2e2d79f9b9f6929bf04a80.tar.bz2 rails-6b96a1eae12dc0065d2e2d79f9b9f6929bf04a80.zip |
Add `null` option to timestamps as migration generator does [ci skip]
Diffstat (limited to 'guides/source/active_record_migrations.md')
-rw-r--r-- | guides/source/active_record_migrations.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/guides/source/active_record_migrations.md b/guides/source/active_record_migrations.md index 1a41fc8b4c..e76a57e164 100644 --- a/guides/source/active_record_migrations.md +++ b/guides/source/active_record_migrations.md @@ -39,7 +39,7 @@ class CreateProducts < ActiveRecord::Migration t.string :name t.text :description - t.timestamps + t.timestamps null: false end end end @@ -285,7 +285,7 @@ class CreateProducts < ActiveRecord::Migration t.string :name t.text :description - t.timestamps + t.timestamps null: false end end end @@ -826,7 +826,7 @@ class CreateProducts < ActiveRecord::Migration create_table :products do |t| t.string :name t.text :description - t.timestamps + t.timestamps null: false end end |