Sha256: bbaf7d66350268c20f46a6acea0761c6b38f0af34b4f0e2ff67be8d669c74645
Contents?: true
Size: 675 Bytes
Versions: 3
Compression:
Stored size: 675 Bytes
Contents
module Hanami class CLI module Commands module Db # @since x.x.x # @api private class Create < Command requires "model.configuration" desc "Create the database (only for development/test)" # @since x.x.x # @api private def call(**options) context = Context.new(options: options) create_database(context) end private # @since x.x.x # @api private def create_database(*) require "hanami/model/migrator" Hanami::Model::Migrator.create end end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hanami-1.1.0.beta3 | lib/hanami/cli/commands/db/create.rb |
hanami-1.1.0.beta2 | lib/hanami/cli/commands/db/create.rb |
hanami-1.1.0.beta1 | lib/hanami/cli/commands/db/create.rb |