Skip to content

Instantly share code, notes, and snippets.

@gor-sg
Created April 27, 2020 12:19
Show Gist options
  • Select an option

  • Save gor-sg/689b535d6f060cfa466f2b2903af3609 to your computer and use it in GitHub Desktop.

Select an option

Save gor-sg/689b535d6f060cfa466f2b2903af3609 to your computer and use it in GitHub Desktop.

Revisions

  1. gor-sg created this gist Apr 27, 2020.
    2 changes: 2 additions & 0 deletions gistfile1.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,2 @@
    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)}