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/test | |
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/test')
-rwxr-xr-x | activerecord/test/base_test.rb | 11 |
1 files changed, 0 insertions, 11 deletions
diff --git a/activerecord/test/base_test.rb b/activerecord/test/base_test.rb index 58dd133aeb..3592c09e23 100755 --- a/activerecord/test/base_test.rb +++ b/activerecord/test/base_test.rb @@ -809,17 +809,6 @@ class BasicsTest < Test::Unit::TestCase def test_default default = Default.new - # CURRENT_TIMESTAMP and NOW() timestamps - time_format = "%m/%d/%Y %H:%M" - now = Time.now.strftime(time_format) - assert_equal now, default.modified_time.strftime(time_format) - assert_equal now, default.modified_time_function.strftime(time_format) - - # CURRENT_DATE and NOW() dates - today = Date.today - assert_equal today, default.modified_date - assert_equal today, default.modified_date_function - # fixed dates / times assert_equal Date.new(2004, 1, 1), default.fixed_date assert_equal Time.local(2004, 1,1,0,0,0,0), default.fixed_time |