Sha256: 427b53b4df544e03ff7dff2a4640cb6abd7809d6e642fe0027d6d1dedb61f922

Contents?: true

Size: 438 Bytes

Versions: 5

Compression:

Stored size: 438 Bytes

Contents

# frozen_string_literal: true

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

module Hanami
  module CLI
    module Commands
      module App
        module DB
          class Setup < App::Command
            desc "Setup database"

            def call(**)
              run_command Create
              run_command Migrate
            end
          end
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
hanami-cli-2.0.0.rc1 lib/hanami/cli/commands/app/db/setup.rb
hanami-cli-2.0.0.beta4 lib/hanami/cli/commands/app/db/setup.rb
hanami-cli-2.0.0.beta3 lib/hanami/cli/commands/app/db/setup.rb
hanami-cli-2.0.0.beta2 lib/hanami/cli/commands/app/db/setup.rb
hanami-cli-2.0.0.beta1 lib/hanami/cli/commands/app/db/setup.rb