Skip to content

Commit

Permalink
Support discard! method defined by rails/rails#31173
Browse files Browse the repository at this point in the history
  • Loading branch information
yahonda committed Nov 27, 2017
1 parent 468ef2b commit 1f8db32
Showing 1 changed file with 4 additions and 0 deletions.
Expand Up @@ -403,6 +403,10 @@ def disconnect! #:nodoc:
@connection.logoff rescue nil
end

def discard!
@connection = nil
end

# use in set_sequence_name to avoid fetching primary key value from sequence
AUTOGENERATED_SEQUENCE_NAME = "autogenerated".freeze

Expand Down

0 comments on commit 1f8db32

Please sign in to comment.