diff options
author | David Heinemeier Hansson <david@basecamp.com> | 2014-08-17 18:12:52 -0700 |
---|---|---|
committer | David Heinemeier Hansson <david@basecamp.com> | 2014-08-17 18:12:52 -0700 |
commit | 7ee055076ec2c5b2e9c110f821c10fe06bf38a1c (patch) | |
tree | de7578ca9afadfb05ea45134c2ae1d053aba0d26 /activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb | |
parent | eced6f81184a67fc47ecb78e802d82a7234ae23d (diff) | |
parent | ea3ba34506c72d636096245016b5ef9cfe27c566 (diff) | |
download | rails-7ee055076ec2c5b2e9c110f821c10fe06bf38a1c.tar.gz rails-7ee055076ec2c5b2e9c110f821c10fe06bf38a1c.tar.bz2 rails-7ee055076ec2c5b2e9c110f821c10fe06bf38a1c.zip |
Merge pull request #16481 from sgrif/sg-change-default-timestamps
Change the default `null` value for timestamps
Diffstat (limited to 'activerecord/lib/rails/generators/active_record/migration/templates/create_table_migration.rb')
-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 fd94a2d038..f7bf6987c4 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 + t.timestamps null: false <% end -%> end <% attributes_with_index.each do |attribute| -%> |