Migrated database to use has_many association between posts and users, and tested for user association