Class: Golem::Command::SetupDb

Inherits:
Base
  • Object
show all
Defined in:
lib/golem/command/setup_db.rb

Overview

Command to setup the database schema (only useful for DB::Pg).

Instance Method Summary collapse

Methods inherited from Base

#command, #initialize, #verbose?

Constructor Details

This class inherits a constructor from Golem::Command::Base

Instance Method Details

#runObject

Run the command. Calls DB.setup.



7
8
9
10
# File 'lib/golem/command/setup_db.rb', line 7

def run
	Golem::DB.setup
	print "Database schema is set up at #{Golem::Config.db.to_s}\n" if verbose?
end