lib/gigantron/tasks/db.rb in gigantron-0.0.1 vs lib/gigantron/tasks/db.rb in gigantron-0.1.0

- old
+ new

@@ -1,8 +1,11 @@ +require 'gigantron/migrator' + namespace :db do - desc "Automatically migrate databases according to models" - task :automigrate do + desc "Migrate databases according to models" + task :migrate do puts "Migrating your database" get_db_conn(GTRON_ENV) - DataMapper.auto_migrate! + + Gigantron.migrate_dbs end end