Top Level Namespace

Defined Under Namespace

Modules: Miteru Classes: InitialSchema

Instance Method Summary collapse

Instance Method Details

#adapterObject



22
23
24
25
26
27
# File 'lib/miteru/database.rb', line 22

def adapter
  return "postgresql" if Miteru.configuration.database.start_with?("postgresql://", "postgres://")
  return "mysql2" if Miteru.configuration.database.start_with?("mysql2://")

  "sqlite3"
end