I'm trying to do this migration in rails where I have Articles and Users and I'm going to add a reference to users in articles, but I want to do something like: null: false, default: [First User in user's table]. Would I accomplish that by doing default: 1?
I don't understand what I'm doing wrong, maybe I shouldn't be writing this in ruby https://bpaste.net/show/fd485244b5c7. The first bit there is a ruby script meant to ping a range of ips. which it does and I've included the output. But then if I run fping (similar to ping) it returns more hosts than the ruby script does. why? I took out wait incase that was a problem. idk just need a sanity check