Sha256: ff3f81833dd9016e4d1ca09fdabd596bea33bccf1e89cadb490f9403e5fc9b66
Contents?: true
Size: 598 Bytes
Versions: 6
Compression:
Stored size: 598 Bytes
Contents
# frozen_string_literal: true module Mihari module Commands module 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 Mihari::Database.with_db_connection { Mihari::Database.migrate(direction.to_sym) } end end end end end end
Version data entries
6 entries across 6 versions & 1 rubygems