Class: ActiveRecord::ConnectionAdapters::PostgreSQLAdapter

Inherits:
Object
  • Object
show all
Defined in:
lib/ar-extensions/adapters/postgresql.rb

Overview

:nodoc:

Instance Method Summary collapse

Instance Method Details

#next_value_for_sequence(sequence_name) ⇒ Object



4
5
6
# File 'lib/ar-extensions/adapters/postgresql.rb', line 4

def next_value_for_sequence(sequence_name)
  %{nextval('#{sequence_name}')}
end