Sha256: 4ff868228c6013557c59773d610e9935e5075a9ccd2b785c9c9c55a2ed9674cc
Contents?: true
Size: 675 Bytes
Versions: 6
Compression:
Stored size: 675 Bytes
Contents
# frozen_string_literal: true require_relative "../../application" module Hanami module CLI module Commands module Monolith module DB class Version < Application desc "Print schema version" option :target, desc: "Target migration number", aliases: ["-t"] def call(target: nil, **) # rubocop:disable Lint/UnusedMethodArgument migration = database.applied_migrations.last version = migration ? File.basename(migration, ".*") : "not available" out.puts "=> current schema version is #{version}" end end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems