To create users in accounts using the users table in the cnx-archive database:
This assumes that you have accounts running and have created a oauth application for cnx (e.g. "OpenStax CNX").
-
Download the sql file for exporting the cnx-archive users table to a csv file:
2. Export the cnx-archive users table to a csv file:
```bash
psql -U cnxarchive cnxarchive -f cnxarchive_users_to_csv.sql >cnxarchive_users.csv
-
Import the users into accounts:
rake accounts:import_users CSV_FILE=cnxarchive_users.csv APP_NAME='OpenStax CNX'