diff options
author | Michael Koziarski <michael@koziarski.com> | 2006-03-18 04:38:49 +0000 |
---|---|---|
committer | Michael Koziarski <michael@koziarski.com> | 2006-03-18 04:38:49 +0000 |
commit | 7fdab4446a91824b16ebf52d35dc9c6854276aac (patch) | |
tree | 5becfdd6e4568342c1522affcae8bbb19995ddad /activerecord/lib/active_record | |
parent | 504ab568f8941b4ecec5026c06743920bcb05c37 (diff) | |
download | rails-7fdab4446a91824b16ebf52d35dc9c6854276aac.tar.gz rails-7fdab4446a91824b16ebf52d35dc9c6854276aac.tar.bz2 rails-7fdab4446a91824b16ebf52d35dc9c6854276aac.zip |
Remove broken attempts at handling columns with a a default of 'now()' in the postgresql adapter. Closes #2257
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@3913 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'activerecord/lib/active_record')
-rw-r--r-- | activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb index 86b89c6c1c..354df9a42e 100644 --- a/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb +++ b/activerecord/lib/active_record/connection_adapters/postgresql_adapter.rb @@ -475,9 +475,6 @@ module ActiveRecord # Numeric values return value if value =~ /^-?[0-9]+(\.[0-9]*)?/ - # Date / Time magic values - return Time.now.to_s if value =~ /^now\(\)|^\('now'::text\)::(date|timestamp)/i - # Fixed dates / times return $1 if value =~ /^'(.+)'::(date|timestamp)/ |