lib/tasks/migrations.rake in couchrest_model-2.1.0.beta1 vs lib/tasks/migrations.rake in couchrest_model-2.1.0.beta2
- old
+ new
@@ -3,19 +3,33 @@
#
# See the CouchRest::Model::Utils::Migrate class for more details.
#
namespace :couchrest do
- desc "Migrate all the design docs found in each model"
- task :migrate => :environment do
- CouchRest::Model::Utils::Migrate.load_all_models
- CouchRest::Model::Utils::Migrate.all_models
- end
+ namespace :designs do
- desc "Migrate all the design docs "
- task :migrate_with_proxies => :environment do
- CouchRest::Model::Utils::Migrate.load_all_models
- CouchRest::Model::Utils::Migrate.all_models_and_proxies
- end
+ desc "Migrate all the design docs found in each model"
+ task :migrate => :environment do
+ CouchRest::Model::Utils::Migrate.load_all_models
+ CouchRest::Model::Utils::Migrate.all_models
+ end
+ desc "Migrate all the design docs found in each model, but do not active the designs"
+ task :prepare => :environment do
+ CouchRest::Model::Utils::Migrate.load_all_models
+ CouchRest::Model::Utils::Migrate.all_models(activate: false)
+ end
+ desc "Migrate all the design docs "
+ task :migrate_with_proxies => :environment do
+ CouchRest::Model::Utils::Migrate.load_all_models
+ CouchRest::Model::Utils::Migrate.all_models_and_proxies
+ end
+
+ desc "Migrate all the design docs "
+ task :prepare_with_proxies => :environment do
+ CouchRest::Model::Utils::Migrate.load_all_models
+ CouchRest::Model::Utils::Migrate.all_models_and_proxies(activate: false)
+ end
+
+ end
end