Sha256: 08a97a5cc95f176877cd0e11523f215134d3273ffe9616b70bc84f86246acbf0

Contents?: true

Size: 1.06 KB

Versions: 4

Compression:

Stored size: 1.06 KB

Contents

#
# CouchRest Migration Rake Tasks
#
# See the CouchRest::Model::Utils::Migrate class for more details.
#
namespace :couchrest do

  namespace :designs 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

    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

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
couchrest_model-2.2.0.beta2 lib/tasks/migrations.rake
couchrest_model-2.2.0.beta1 lib/tasks/migrations.rake
couchrest_model-2.1.0.rc1 lib/tasks/migrations.rake
couchrest_model-2.1.0.beta2 lib/tasks/migrations.rake