scribe/config/database.cr
Michael Herold 098f7fe0f9
Remove the need for a DATABASE_URL
Since the application does not use a database, it's confusing to have to
set a bogus database URL environment variable. This change follows [the
Lucky guide][1] suggestion for disabling the need for database
configuration. That makes the setup a little easier.

[1]:
https://www.luckyframework.org/guides/database/intro-to-avram-and-orms
2022-05-21 11:34:28 -04:00

10 lines
201 B
Crystal

class UnusedDB < Avram::Database
end
UnusedDB.configure do |settings|
settings.credentials = Avram::Credentials.void
end
Avram.configure do |settings|
settings.database_to_migrate = UnusedDB
end