Advertisement
Guest User

Untitled

a guest
Jul 3rd, 2015
189
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. #README
  2.  
  3. Usage
  4. ______
  5.  
  6.  
  7. * Create the raw data spreadsheet, name it "dataload.xls"
  8. * Create the seed script:
  9. ```
  10. rails runner dataload/parse.rb > dataload/load.rb
  11. ```
  12.  
  13.  
  14. * Run the seed script:
  15. ```
  16. rails runner dataload/load.rb
  17. ```
  18.  
  19. * 'Comments' is a sql file that is too big to be loaded the slow junky rails way:
  20. ```
  21. psql -d lineups_development -f comments.sql
  22. ```
  23.  
  24. * Reset the database sequence columns, since (at least in postgres) we have inserted them ourselves. (without this, the very first save will try to use a sequence value that already exists)
  25. ```
  26. dataload/reset_sequences.sh
  27. ```
  28.  
  29.  
  30. There is more to come.
  31. The data load script uses some raw data files that are extracted from the legacy databases (.txt files and a spreadsheet, etc.). It is important that these are "fresh" when an initial data load is run.
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement