From 9a35c484cbe9ffeaa4749de6c42dff1e233384e3 Mon Sep 17 00:00:00 2001 From: Fumiaki MATSUSHIMA Date: Sun, 7 Jun 2015 12:05:25 +0900 Subject: Stop `to_s(:db)` for fixture's timestamp Time instance will be casted so we don't have to do `to_s(:db)`. --- activerecord/lib/active_record/fixtures.rb | 1 - 1 file changed, 1 deletion(-) (limited to 'activerecord') diff --git a/activerecord/lib/active_record/fixtures.rb b/activerecord/lib/active_record/fixtures.rb index 1ec8f818cd..7760fd33b7 100644 --- a/activerecord/lib/active_record/fixtures.rb +++ b/activerecord/lib/active_record/fixtures.rb @@ -615,7 +615,6 @@ module ActiveRecord # a list of rows to insert to that table. def table_rows now = config.default_timezone == :utc ? Time.now.utc : Time.now - now = now.to_s(:db) # allow a standard key to be used for doing defaults in YAML fixtures.delete('DEFAULTS') -- cgit v1.2.3