Sha256: d53e6683d4b4f6d8dd289965fb113706f1ddac7dd7c1199bf444ca0c678c9b2b

Contents?: true

Size: 565 Bytes

Versions: 11

Compression:

Stored size: 565 Bytes

Contents

# frozen_string_literal: true

require_relative "../../app/command"
require_relative "create"
require_relative "drop"
require_relative "migrate"

module Hanami
  module CLI
    module Commands
      module App
        module DB
          # @api private
          class Reset < App::Command
            desc "Drop, create, and migrate database"

            # @api private
            def call(**)
              run_command Drop
              run_command Create
              run_command Migrate
            end
          end
        end
      end
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
hanami-cli-2.1.1 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.1.0 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.1.0.rc3 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.1.0.rc2 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.1.0.rc1 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.1.0.beta2 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.1.0.beta1 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.0.3 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.0.2 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.0.1 lib/hanami/cli/commands/app/db/reset.rb
hanami-cli-2.0.0 lib/hanami/cli/commands/app/db/reset.rb