Browse Source

Run setup or reset on all projectors

feature/tags
Bèr Kessels 1 year ago
parent
commit
21beef5443
1 changed files with 6 additions and 1 deletions
  1. 6
    1
      Rakefile

+ 6
- 1
Rakefile View File

@@ -65,7 +65,12 @@ namespace :db do

desc 'Setup Event Stream projections'
task create_projections: %i[environment database] do
[Projections::Members::Projector].map(&:new).each(&:setup)
Roost.all_processors.map(&:new).each(&:setup)
end

desc 'Reset Event Stream projections'
task reset_projections: %i[environment database] do
Roost.all_processors.map(&:new).each(&:reset)
end

def database

Loading…
Cancel
Save