lib/hanami/model/migrator.rb in hanami-model-1.3.2 vs lib/hanami/model/migrator.rb in hanami-model-1.3.3

- old
+ new

@@ -1,8 +1,10 @@ -require 'sequel' -require 'sequel/extensions/migration' +# frozen_string_literal: true +require "sequel" +require "sequel/extensions/migration" + module Hanami module Model # Migration error # # @since 0.4.0 @@ -11,12 +13,12 @@ # Database schema migrator # # @since 0.4.0 class Migrator - require 'hanami/model/migrator/connection' - require 'hanami/model/migrator/adapter' + require "hanami/model/migrator/connection" + require "hanami/model/migrator/adapter" # Create database defined by current configuration. # # It's only implemented for the following databases: # @@ -325,10 +327,10 @@ # @api private # # @see Hanami::Model::Migrator.prepare def prepare drop - rescue # rubocop:disable Lint/HandleExceptions + rescue # rubocop:disable Lint/SuppressedException ensure create adapter.load migrate end