Method: Sequel::Postgres::DatabaseMethods#serial_primary_key_options
- Defined in:
- lib/sequel/adapters/shared/postgres.rb
#serial_primary_key_options ⇒ Object
PostgreSQL uses SERIAL psuedo-type instead of AUTOINCREMENT for managing incrementing primary keys.
792 793 794 795 796 797 |
# File 'lib/sequel/adapters/shared/postgres.rb', line 792 def # :nocov: auto_increment_key = server_version >= 100002 ? :identity : :serial # :nocov: {:primary_key => true, auto_increment_key => true, :type=>Integer} end |