Created active record associations for user and pin