require "spec"

module GraniteExample
  ADAPTERS = ["pg","mysql","sqlite"]
  @@model_classes = [] of Granite::ORM::Base.class

  extend self

  def model_classes
    @@model_classes
  end
end

require "../src/granite_orm"
require "./spec_models"

GraniteExample.model_classes.each do |model|
  model.drop_and_create
end

require "spec"

module GraniteExample
  ADAPTERS = ["pg","mysql","sqlite"]
  @@model_classes = [] of Granite::ORM::Base.class

  extend self

  def model_classes
    @@model_classes
  end
end

require "../src/granite_orm"
require "./spec_models"

Granite::ORM.settings.logger = ::Logger.new(nil)

GraniteExample.model_classes.each do |model|
  model.drop_and_create
end

Disable query logging for `crystal spec`
Disable query logging for `crystal spec`
