lib/padrino-gen/padrino-tasks/sequel.rb in padrino-gen-0.10.7 vs lib/padrino-gen/padrino-tasks/sequel.rb in padrino-gen-0.11.0

- old
+ new

@@ -1,6 +1,6 @@ -if defined?(Sequel) +if PadrinoTasks.load?(:sequel, defined?(Sequel)) namespace :sq do namespace :migrate do desc "Perform automigration (reset your db data)" task :auto => :environment do @@ -31,7 +31,12 @@ ::Sequel.extension :migration ::Sequel::Migrator.run Sequel::Model.db, "db/migrate", :target => 0 puts "<= sq:migrate:down executed" end end + + desc "Perform migration up to latest migration available" + task :migrate => 'sq:migrate:up' end + + task 'db:migrate' => 'sq:migrate' end