Sha256: e72da35178a16d267917f3e7e2ada7f75e83b6f3d8a8e716658adfcb7fb42b1c
Contents?: true
Size: 618 Bytes
Versions: 19
Compression:
Stored size: 618 Bytes
Contents
# frozen_string_literal: true module Mihari module Commands module Database class << self def 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") ActiveRecord::Migration.verbose = options["verbose"] Mihari::Database.with_db_connection { Mihari::Database.migrate direction.to_sym } end end end end end end end
Version data entries
19 entries across 19 versions & 1 rubygems