Module: Hanami::Model::Sql::Types::Schema

Defined in:
gems/gems/hanami-model-1.3.2/lib/hanami/model/sql/types.rb,
gems/gems/hanami-model-1.3.2/lib/hanami/model/sql/types/schema/coercions.rb

Overview

Types for schema definitions

Since:

  • 0.7.0

Constant Summary

String =

Since:

  • 0.7.0

Types::Optional::Coercible::String
Int =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Int.constructor(Coercions.method(:int))
Float =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Float.constructor(Coercions.method(:float))
Decimal =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Float.constructor(Coercions.method(:decimal))
Bool =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Strict::Bool
Date =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Date.constructor(Coercions.method(:date))
DateTime =

Since:

  • 0.7.0

Types::Strict::Nil | Types::DateTime.constructor(Coercions.method(:datetime))
Time =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Time.constructor(Coercions.method(:time))
Array =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Array.constructor(Coercions.method(:array))
Hash =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Hash.constructor(Coercions.method(:hash))
PG_JSON =

Since:

  • 0.7.0

Types::Strict::Nil | Types::Any.constructor(Coercions.method(:pg_json))