lib/physique/task_builders/fluent_migrator.rb in physique-0.3.3 vs lib/physique/task_builders/fluent_migrator.rb in physique-0.3.4

- old
+ new

@@ -1,7 +1,6 @@ -require 'active_support/core_ext/string' -require 'active_support/core_ext/array' +require 'active_support/core_ext/object/blank' require 'physique/project' module Physique class FluentMigratorConfig self.extend Albacore::ConfigDSL @@ -59,11 +58,11 @@ task_namespace = db_task_name(db) namespace :db do namespace task_namespace do # First look at the scripts_dir and add a task for every sql file that you find - defaults = default_tasks(db) + defaults = default_tasks(db.name) add_script_tasks db, defaults # Then add the default minimum required tasks in case the scripts_dir didn't contain them add_default_db_tasks db, defaults @@ -236,10 +235,10 @@ public override void Down() { // Add migration rollback code here } - }rake install + } } TEMPLATE end def save_file(content, file_path) \ No newline at end of file