Class: Sequelinha::Tasks
- Inherits:
-
Object
- Object
- Sequelinha::Tasks
- Defined in:
- lib/sequelinha/tasks.rb
Class Method Summary collapse
- .load(application_root = Sequelinha.config.application_root) ⇒ Object
- .migrations(application_root = Sequelinha.config.application_root) ⇒ Object
Class Method Details
.load(application_root = Sequelinha.config.application_root) ⇒ Object
6 7 8 9 |
# File 'lib/sequelinha/tasks.rb', line 6 def load(application_root = Sequelinha.config.application_root) Sequelinha.config.application_root ||= aplication_root require migrations end |
.migrations(application_root = Sequelinha.config.application_root) ⇒ Object
11 12 13 14 |
# File 'lib/sequelinha/tasks.rb', line 11 def migrations(application_root = Sequelinha.config.application_root) tasks_dir = File.("../../tasks/", __FILE__) File.join(tasks_dir, "migrations") end |