Created
April 27, 2020 12:19
-
-
Save gor-sg/689b535d6f060cfa466f2b2903af3609 to your computer and use it in GitHub Desktop.
create inventory numbers
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| numbers = `curl https://gist.githubusercontent.com/gor-sg/6e8296dcc76200fc59ea81b97bb0c2f2/raw/7d8d83baef7a29a4ea86e5bc70aa7c4535758c9f/gistfile1.txt`.split | |
| numbers.each {|n| Inventory.create(survey_number: n, inventory_snapshot_id: 1, created_at: Date.yesterday)} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment