aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/lib/active_record/connection_adapters
diff options
context:
space:
mode:
authorDave Kroondyk <dave.kroondyk@thomsonreuters.com>2012-07-18 10:03:36 -0400
committerDave Kroondyk <dave.kroondyk@thomsonreuters.com>2012-07-18 10:59:32 -0400
commitccf7cd05ade081423bf8f000d4b98f8de030683d (patch)
treed507df065a87c9664d36e7c2fa99b11694fdaf8f /activerecord/lib/active_record/connection_adapters
parent35072161b5c116b17bee235b079148b770a27c8b (diff)
downloadrails-ccf7cd05ade081423bf8f000d4b98f8de030683d.tar.gz
rails-ccf7cd05ade081423bf8f000d4b98f8de030683d.tar.bz2
rails-ccf7cd05ade081423bf8f000d4b98f8de030683d.zip
revert Default timestamps to non-null
Commit 3dbedd2 added NOT NULL constraints to timestamps. Commit fcef728 started to revert this, but was incomplete. With this commit, 3dbedd2 should be fully reverted and timestamps will no longer default to NOT NULL.
Diffstat (limited to 'activerecord/lib/active_record/connection_adapters')
-rw-r--r--activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
index ef17dfbbc5..f9ae1ed475 100644
--- a/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
+++ b/activerecord/lib/active_record/connection_adapters/abstract/schema_definitions.rb
@@ -271,7 +271,7 @@ module ActiveRecord
# Appends <tt>:datetime</tt> columns <tt>:created_at</tt> and
# <tt>:updated_at</tt> to the table.
def timestamps(*args)
- options = { :null => false }.merge(args.extract_options!)
+ options = args.extract_options!
column(:created_at, :datetime, options)
column(:updated_at, :datetime, options)
end