Note: The posts table has a foreign key (user_id) to table users
User.all
Post.all
User.create(name: "test 3", email:"t3@t.com", age:3, gender:"M")
Post.create(title: "Title 3", description: "D3", user_id: 3)
u2 = User.find_by(id: 2)
u2.name = "test 2 updated"
u2.save
p2 = Post.find_by(id: 2)
p2.name = "Title 2 updated"
p2.save
Post.destroy_by(id:3)
User.destroy_by(id:3)