Skip to content
This repository has been archived by the owner on Mar 14, 2021. It is now read-only.

Authority Migration (to become Lakeshore Bootstrapping?)

Adam Wead edited this page Jun 28, 2017 · 5 revisions

Migrating Authority References

First, run:

RAILS_ENV=production bundle exec rake lakeshore:load_lists

This command will fail with ActiveFedora::IllegalOperation: Attempting to recreate existing ldp_source, but it will have also created the necessary resources to proceed.

Next, run:

RAILS_ENV=production bundle exec rake authorities:migrate

This will alter the model type (:hasModel) of the offending authorities that caused the previous error.

Now, you may re-run the original command to complete the authority creation process:

RAILS_ENV=production bundle exec rake lakeshore:load_lists