2018-10-11 12:31:52 -04:00
|
|
|
# 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"
|
2018-10-11 12:32:11 -04:00
|
|
|
task install: %w[ environment install:copy_migration active_storage:install ]
|
2018-10-11 12:31:52 -04:00
|
|
|
|
|
|
|
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
|