This method was adapted from this blog post.
So, you are creating a thing (record) or maybe you are updating it. You've added created_by and updated_by fields to your model, and you've made these integers with the intention of them both being foreign keys to the Users model.
Maybe you've even setup a belongs_to relationsion to your User model like so: