Sha256: 5d70fa83aedb69284a05511f3f957f4c3d44b48d1c91650d160433b5586ce39b
Contents?: true
Size: 688 Bytes
Versions: 18
Compression:
Stored size: 688 Bytes
Contents
module Hanami class CLI module Commands module Db # @since 1.1.0 # @api private class Apply < Command requires "model.sql" desc "Migrate, dump the SQL schema, and delete the migrations (experimental)" # @since 1.1.0 # @api private def call(**options) context = Context.new(options: options) apply_migrations(context) end private # @since 1.1.0 # @api private def apply_migrations(*) require "hanami/model/migrator" Hanami::Model::Migrator.apply end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems