diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 00:24:40 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:58:43 -0300 |
commit | a939506f297b667291480f26fa32a373a18ae06a (patch) | |
tree | 67f9dbd9df438ae2bf36b772790939425c446a2b /activerecord/lib/rails | |
parent | 94c87156fd67047d96a6805f2f7b8db0a59cd37a (diff) | |
download | rails-a939506f297b667291480f26fa32a373a18ae06a.tar.gz rails-a939506f297b667291480f26fa32a373a18ae06a.tar.bz2 rails-a939506f297b667291480f26fa32a373a18ae06a.zip |
Change the default `null` value for `timestamps` to `false`
Diffstat (limited to 'activerecord/lib/rails')
-rw-r--r-- | activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb b/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb index f7bf6987c4..fd94a2d038 100644 --- a/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb +++ b/activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb @@ -9,7 +9,7 @@ class <%= migration_class_name %> < ActiveRecord::Migration <% end -%> <% end -%> <% if options[:timestamps] %> - t.timestamps null: false + t.timestamps <% end -%> end <% attributes_with_index.each do |attribute| -%> |