Module: Miteru::Commands::Database
- Included in:
- Miteru::CLI::Database
- Defined in:
- lib/miteru/commands/database.rb
Class Method Summary collapse
Class Method Details
.included(thor) ⇒ Object
7 8 9 10 11 12 13 14 15 16 17 18 19 |
# File 'lib/miteru/commands/database.rb', line 7 def included(thor) thor.class_eval do include Concerns::DatabaseConnectable desc "migrate", "Migrate DB schemas" around :with_db_connection method_option :verbose, type: :boolean, default: true def migrate(direction = "up") ActiveRecord::Migration.verbose = ["verbose"] Miteru::Database.migrate direction.to_sym end end end |