Class: Sequelinha::Tasks

Inherits:
Object
  • Object
show all
Defined in:
lib/sequelinha/tasks.rb

Class Method Summary collapse

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.expand_path("../../tasks/", __FILE__)
  File.join(tasks_dir, "migrations")
end