-
Notifications
You must be signed in to change notification settings - Fork 2
Migration
Starting with a clean database:
-
Run the migration to prepare the database.
rails db:migrate
-
Load users.
rails batch:load_users
-
Load controlled vocabulary prior to other record types. All vocabularies are includes with the app in
/lib/assets/
.rails batch:department_controlled_vocabulary
rails batch:housing_controlled_vocabulary
rails batch:repair_type_controlled_vocabulary
rails batch:contract_conservators_controlled_vocabulary
-
You must supply a csv in utf8 format with records, exported from the legacy access db. Conservation records have a one to one/many relationship with the other records, they anchor all other records types aside from controlled vocabulary.
rails batch:conservation_records CSV_LOCATION=/tmp/Conservation-Data-with-headers.csv
-
You must supply a csv in utf8 format with records, exported from the legacy access db. Treatment reports have a one-to-one relationship with conservation records.
rails batch:treatment_reports CSV_LOCATION=/tmp/Treatment-Record.csv