aboutsummaryrefslogtreecommitdiffstats
path: root/lib/tasks/install.rake
blob: d5abf600427b0e7a8a4d339b07e19ad3a4ad5805 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
# frozen_string_literal: true

namespace :action_mailbox do
  # Prevent migration installation task from showing up twice.
  Rake::Task["install:migrations"].clear_comments

  desc "Copy over the migration"
  task install: %w[ environment install:copy_migration active_storage:install ]

  namespace :install do
    task :copy_migration do
      if Rake::Task.task_defined?("action_mailbox:install:migrations")
        Rake::Task["action_mailbox:install:migrations"].invoke
      else
        Rake::Task["app:action_mailbox:install:migrations"].invoke
      end
    end
  end
end