Sha256: 64147ed493f3ecb47767c4410503508d5c08946705cecc2f95fc1043b72c7c01
Contents?: true
Size: 627 Bytes
Versions: 1
Compression:
Stored size: 627 Bytes
Contents
# frozen_string_literal: true module Hanami module Model # Database migration # # @since 0.7.0 # @api private class Migration # @since 0.7.0 # @api private attr_reader :gateway # @since 0.7.0 # @api private attr_reader :migration # @since 0.7.0 # @api private def initialize(gateway, &block) @gateway = gateway @migration = gateway.migration(&block) freeze end # @since 0.7.0 # @api private def run(direction = :up) migration.apply(gateway.connection, direction) end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hanami-model-1.3.3 | lib/hanami/model/migration.rb |