Class: Openbox::Commands::Seed

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

Overview

The Seed Command

Since:

  • 0.1.0

Instance Method Summary collapse

Methods inherited from Openbox::Command

#before_execute

Instance Method Details

#executeObject

Run rails seed

Since:

  • 0.1.0



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

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