Sha256: 04cf2a16a43dff608ab55e1728a39cd305d792ea75cb90de4f933689f988b2bf
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 Prepare < Command requires "model.sql" desc "Drop, create, and migrate the database (only for development/test)" # @since 1.1.0 # @api private def call(**options) context = Context.new(options: options) prepare_database(context) end private # @since 1.1.0 # @api private def prepare_database(*) require 'hanami/model/migrator' Hanami::Model::Migrator.prepare end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems