Sha256: a8e486f317a262d2d8f2500f2bcce6ff46eb44ff32b9e42956f1897ca712ab90
Contents?: true
Size: 661 Bytes
Versions: 15
Compression:
Stored size: 661 Bytes
Contents
module Hanami class CLI module Commands # @since 1.1.0 # @api private module Db class Drop < Command requires "model.configuration" desc "Drop the database (only for development/test)" # @since 1.1.0 # @api private def call(**options) context = Context.new(options: options) drop_database(context) end private # @since 1.1.0 # @api private def drop_database(*) require "hanami/model/migrator" Hanami::Model::Migrator.drop end end end end end end
Version data entries
15 entries across 15 versions & 1 rubygems