Sha256: 73a008dee6a00089ee18d8f1885137501271486e9cd3b1cf56101ddd1b1f58bc
Contents?: true
Size: 654 Bytes
Versions: 2
Compression:
Stored size: 654 Bytes
Contents
# frozen_string_literal: true module Mihari module Commands module Database include Mixins::Database def self.included(thor) thor.class_eval do desc "migrate", "Migrate DB schemas" method_option :verbose, type: :boolean, default: true # # @param [String] direction # # def migrate(direction = "up") verbose = options["verbose"] ActiveRecord::Migration.verbose = verbose with_db_connection do Mihari::Database.migrate(direction.to_sym) end end end end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
mihari-5.1.1 | lib/mihari/commands/database.rb |
mihari-5.1.0 | lib/mihari/commands/database.rb |