lib/hanami/model/sql.rb in hanami-model-1.3.2 vs lib/hanami/model/sql.rb in hanami-model-1.3.3
- old
+ new
@@ -1,14 +1,16 @@
-require 'rom-sql'
-require 'hanami/utils'
+# frozen_string_literal: true
+require "rom-sql"
+require "hanami/utils"
+
module Hanami
# Hanami::Model migrations
module Model
- require 'hanami/model/error'
- require 'hanami/model/association'
- require 'hanami/model/migration'
+ require "hanami/model/error"
+ require "hanami/model/association"
+ require "hanami/model/migration"
# Define a migration
#
# It must define an up/down strategy to write schema changes (up) and to
# rollback them (down).
@@ -51,11 +53,11 @@
# SQL adapter
#
# @since 0.7.0
module Sql
- require 'hanami/model/sql/types'
- require 'hanami/model/sql/entity/schema'
+ require "hanami/model/sql/types"
+ require "hanami/model/sql/entity/schema"
# Returns a SQL fragment that references a database function by the given name
# This is useful for database migrations
#
# @param name [String,Symbol] the function name