carnetdejeu-crystal/config/initializers/database.cr

7 lines
222 B
Crystal
Raw Normal View History

2018-09-03 21:08:32 +00:00
require "granite/adapter/pg"
Granite::Adapters << Granite::Adapter::Pg.new({name: "pg", url: Amber.settings.database_url})
Granite.settings.logger = Amber.settings.logger.dup
Granite.settings.logger.progname = "Granite"