Skip to content

Commit

Permalink
Stop to_s(:db) for fixture's timestamp
Browse files Browse the repository at this point in the history
Time instance will be casted so we don't have to do `to_s(:db)`.
  • Loading branch information
mtsmfm committed Jun 7, 2015
1 parent 228e3f0 commit 9a35c48
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion activerecord/lib/active_record/fixtures.rb
Original file line number Diff line number Diff line change
Expand Up @@ -615,7 +615,6 @@ def size
# 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')
Expand Down

0 comments on commit 9a35c48

Please sign in to comment.