Method: Sequel::Postgres::DatabaseMethods#supports_create_table_if_not_exists?

Defined in:
lib/sequel/adapters/shared/postgres.rb

#supports_create_table_if_not_exists?Boolean

PostgreSQL supports CREATE TABLE IF NOT EXISTS on 9.1+

Returns:

  • (Boolean)


471
472
473
# File 'lib/sequel/adapters/shared/postgres.rb', line 471

def supports_create_table_if_not_exists?
  server_version >= 90100
end