Sha256: de6d9179d728d049cc113c7ceb22c266eb0d9e23374eea026ae8462301c03464

Contents?: true

Size: 545 Bytes

Versions: 7

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

#
# A set of utils to manage Decidim Organizations.
#
namespace :cdtb do
  namespace :upgrades do
    require "decidim/cdtb/tasks_utils"
    include ::Decidim::Cdtb::TasksUtils

    desc <<~EODESC
      Validates that migrations from all gems in the Gemfile have been installed.
    EODESC
    task validate_migrations: [:environment] do
      task= ::Decidim::Cdtb::Upgrades::ValidateMigrationsTask.new
      task.execute!
      raise("There are pending migrations") if task.pending_migrations?
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
decidim-cdtb-0.3.0 lib/tasks/upgrade.rake
decidim-cdtb-0.2.1 lib/tasks/upgrade.rake
decidim-cdtb-0.1.8 lib/tasks/upgrade.rake
decidim-cdtb-0.1.7 lib/tasks/upgrade.rake
decidim-cdtb-0.1.6 lib/tasks/upgrade.rake
decidim-cdtb-0.1.4 lib/tasks/upgrade.rake
decidim-cdtb-0.1.3 lib/tasks/upgrade.rake