bin/carregar_historico in bovespa_ingestion-0.3.1 vs bin/carregar_historico in bovespa_ingestion-0.3.2
- old
+ new
@@ -24,9 +24,14 @@
command = ARGV[0]
if command == 'install'
require 'rake'
StandaloneMigrations::Tasks.load_tasks
+
+ migrate_path = File.expand_path("../../db/migrate", __FILE__)
+ paths = Rails.application.config.paths
+ paths.add "db/migrate", :with => migrate_path
+
Rake::Task['db:migrate'].invoke
# system("rake db:migrate")
elsif command == 'import'
if ARGV.size == 1
\ No newline at end of file