Class: Openbox::Commands::Migrate

Inherits:
Openbox::Command show all
Defined in:
lib/openbox/commands/migrate.rb

Overview

The Migrate Command

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Openbox::Command

#before_execute

Instance Method Details

#executeObject

Run rails migrate

Since:

  • 0.1.0



13
14
15
16
# File 'lib/openbox/commands/migrate.rb', line 13

def execute
  Openbox.database.ensure_connection!
  system('bundle exec rails db:migrate')
end