commit
475634a854
2 changed files with 71 additions and 54 deletions
108
Gemfile.lock
108
Gemfile.lock
|
@ -4,40 +4,40 @@ GEM
|
||||||
aasm (5.2.0)
|
aasm (5.2.0)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
acsv (0.0.1)
|
acsv (0.0.1)
|
||||||
actioncable (6.1.4.6)
|
actioncable (6.1.4.7)
|
||||||
actionpack (= 6.1.4.6)
|
actionpack (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
nio4r (~> 2.0)
|
nio4r (~> 2.0)
|
||||||
websocket-driver (>= 0.6.1)
|
websocket-driver (>= 0.6.1)
|
||||||
actionmailbox (6.1.4.6)
|
actionmailbox (6.1.4.7)
|
||||||
actionpack (= 6.1.4.6)
|
actionpack (= 6.1.4.7)
|
||||||
activejob (= 6.1.4.6)
|
activejob (= 6.1.4.7)
|
||||||
activerecord (= 6.1.4.6)
|
activerecord (= 6.1.4.7)
|
||||||
activestorage (= 6.1.4.6)
|
activestorage (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
mail (>= 2.7.1)
|
mail (>= 2.7.1)
|
||||||
actionmailer (6.1.4.6)
|
actionmailer (6.1.4.7)
|
||||||
actionpack (= 6.1.4.6)
|
actionpack (= 6.1.4.7)
|
||||||
actionview (= 6.1.4.6)
|
actionview (= 6.1.4.7)
|
||||||
activejob (= 6.1.4.6)
|
activejob (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
mail (~> 2.5, >= 2.5.4)
|
mail (~> 2.5, >= 2.5.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
actionpack (6.1.4.6)
|
actionpack (6.1.4.7)
|
||||||
actionview (= 6.1.4.6)
|
actionview (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
rack (~> 2.0, >= 2.0.9)
|
rack (~> 2.0, >= 2.0.9)
|
||||||
rack-test (>= 0.6.3)
|
rack-test (>= 0.6.3)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
rails-html-sanitizer (~> 1.0, >= 1.2.0)
|
||||||
actiontext (6.1.4.6)
|
actiontext (6.1.4.7)
|
||||||
actionpack (= 6.1.4.6)
|
actionpack (= 6.1.4.7)
|
||||||
activerecord (= 6.1.4.6)
|
activerecord (= 6.1.4.7)
|
||||||
activestorage (= 6.1.4.6)
|
activestorage (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
nokogiri (>= 1.8.5)
|
nokogiri (>= 1.8.5)
|
||||||
actionview (6.1.4.6)
|
actionview (6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
builder (~> 3.1)
|
builder (~> 3.1)
|
||||||
erubi (~> 1.4)
|
erubi (~> 1.4)
|
||||||
rails-dom-testing (~> 2.0)
|
rails-dom-testing (~> 2.0)
|
||||||
|
@ -55,26 +55,26 @@ GEM
|
||||||
activemodel (>= 5.2.0)
|
activemodel (>= 5.2.0)
|
||||||
activestorage (>= 5.2.0)
|
activestorage (>= 5.2.0)
|
||||||
activesupport (>= 5.2.0)
|
activesupport (>= 5.2.0)
|
||||||
activejob (6.1.4.6)
|
activejob (6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
globalid (>= 0.3.6)
|
globalid (>= 0.3.6)
|
||||||
activemodel (6.1.4.6)
|
activemodel (6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
activerecord (6.1.4.6)
|
activerecord (6.1.4.7)
|
||||||
activemodel (= 6.1.4.6)
|
activemodel (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
activestorage (6.1.4.6)
|
activestorage (6.1.4.7)
|
||||||
actionpack (= 6.1.4.6)
|
actionpack (= 6.1.4.7)
|
||||||
activejob (= 6.1.4.6)
|
activejob (= 6.1.4.7)
|
||||||
activerecord (= 6.1.4.6)
|
activerecord (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
marcel (~> 1.0.0)
|
marcel (~> 1.0.0)
|
||||||
mini_mime (>= 1.1.0)
|
mini_mime (>= 1.1.0)
|
||||||
activestorage-openstack (1.5.1)
|
activestorage-openstack (1.5.1)
|
||||||
fog-openstack (~> 1.0)
|
fog-openstack (~> 1.0)
|
||||||
marcel
|
marcel
|
||||||
rails (>= 5.2.2)
|
rails (>= 5.2.2)
|
||||||
activesupport (6.1.4.6)
|
activesupport (6.1.4.7)
|
||||||
concurrent-ruby (~> 1.0, >= 1.0.2)
|
concurrent-ruby (~> 1.0, >= 1.0.2)
|
||||||
i18n (>= 1.6, < 2)
|
i18n (>= 1.6, < 2)
|
||||||
minitest (>= 5.1)
|
minitest (>= 5.1)
|
||||||
|
@ -502,20 +502,20 @@ GEM
|
||||||
rack
|
rack
|
||||||
rack-test (1.1.0)
|
rack-test (1.1.0)
|
||||||
rack (>= 1.0, < 3)
|
rack (>= 1.0, < 3)
|
||||||
rails (6.1.4.6)
|
rails (6.1.4.7)
|
||||||
actioncable (= 6.1.4.6)
|
actioncable (= 6.1.4.7)
|
||||||
actionmailbox (= 6.1.4.6)
|
actionmailbox (= 6.1.4.7)
|
||||||
actionmailer (= 6.1.4.6)
|
actionmailer (= 6.1.4.7)
|
||||||
actionpack (= 6.1.4.6)
|
actionpack (= 6.1.4.7)
|
||||||
actiontext (= 6.1.4.6)
|
actiontext (= 6.1.4.7)
|
||||||
actionview (= 6.1.4.6)
|
actionview (= 6.1.4.7)
|
||||||
activejob (= 6.1.4.6)
|
activejob (= 6.1.4.7)
|
||||||
activemodel (= 6.1.4.6)
|
activemodel (= 6.1.4.7)
|
||||||
activerecord (= 6.1.4.6)
|
activerecord (= 6.1.4.7)
|
||||||
activestorage (= 6.1.4.6)
|
activestorage (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
bundler (>= 1.15.0)
|
bundler (>= 1.15.0)
|
||||||
railties (= 6.1.4.6)
|
railties (= 6.1.4.7)
|
||||||
sprockets-rails (>= 2.0.0)
|
sprockets-rails (>= 2.0.0)
|
||||||
rails-controller-testing (1.0.5)
|
rails-controller-testing (1.0.5)
|
||||||
actionpack (>= 5.0.1.rc1)
|
actionpack (>= 5.0.1.rc1)
|
||||||
|
@ -534,9 +534,9 @@ GEM
|
||||||
rails-i18n (6.0.0)
|
rails-i18n (6.0.0)
|
||||||
i18n (>= 0.7, < 2)
|
i18n (>= 0.7, < 2)
|
||||||
railties (>= 6.0.0, < 7)
|
railties (>= 6.0.0, < 7)
|
||||||
railties (6.1.4.6)
|
railties (6.1.4.7)
|
||||||
actionpack (= 6.1.4.6)
|
actionpack (= 6.1.4.7)
|
||||||
activesupport (= 6.1.4.6)
|
activesupport (= 6.1.4.7)
|
||||||
method_source
|
method_source
|
||||||
rake (>= 0.13)
|
rake (>= 0.13)
|
||||||
thor (~> 1.0)
|
thor (~> 1.0)
|
||||||
|
@ -684,7 +684,7 @@ GEM
|
||||||
spring (2.1.1)
|
spring (2.1.1)
|
||||||
spring-commands-rspec (1.0.4)
|
spring-commands-rspec (1.0.4)
|
||||||
spring (>= 0.9.1)
|
spring (>= 0.9.1)
|
||||||
sprockets (4.0.2)
|
sprockets (4.0.3)
|
||||||
concurrent-ruby (~> 1.0)
|
concurrent-ruby (~> 1.0)
|
||||||
rack (> 1, < 3)
|
rack (> 1, < 3)
|
||||||
sprockets-rails (3.4.2)
|
sprockets-rails (3.4.2)
|
||||||
|
|
|
@ -0,0 +1,17 @@
|
||||||
|
namespace :after_party do
|
||||||
|
desc 'Deployment task: seed_hidden_at_dossiers'
|
||||||
|
task seed_hidden_at_dossiers: :environment do
|
||||||
|
puts "Running deploy task 'seed_hidden_at_dossiers'"
|
||||||
|
|
||||||
|
Dossier
|
||||||
|
.with_discarded
|
||||||
|
.where.not(hidden_at: nil)
|
||||||
|
.where(hidden_by_user_at: nil, hidden_by_administration_at: nil)
|
||||||
|
.update_all('hidden_by_user_at = hidden_at, hidden_by_administration_at = hidden_at')
|
||||||
|
|
||||||
|
# Update task as completed. If you remove the line below, the task will
|
||||||
|
# run with every deploy (or every time you call after_party:run).
|
||||||
|
AfterParty::TaskRecord
|
||||||
|
.create version: AfterParty::TaskRecorder.new(__FILE__).timestamp
|
||||||
|
end
|
||||||
|
end
|
Loading…
Reference in a new issue