aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/rails
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 00:24:40 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 11:58:43 -0300
commita939506f297b667291480f26fa32a373a18ae06a (patch)
tree67f9dbd9df438ae2bf36b772790939425c446a2b /activerecord/lib/rails
parent94c87156fd67047d96a6805f2f7b8db0a59cd37a (diff)
downloadrails-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.rb2
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| -%>