Exercise 4


I keep receiving this error, even though I typed out everything exactly as it says. I even tried copying and pasting the text it tells me to type with no luck.

This is the error I get:
Oops! The test returned an error. Maybe you have a syntax error, or a typo. Hide error.
check_pending!': (ActiveRecord::PendingMigrationError)`

This is my code

<!-- Your code here -->
<% @messages.each do |message| %> 
<div class="message"> 
  <p class="content"><%= message.content %></p> 
  <p class="time"><%= message.created_at %></p> 
<% end %>


Hi Zachary,

There's your problem - you need to run rake db:migrate in your terminal :slightly_smiling:


I appreciate that, that was the issue! I was getting so frustrated because my code was identical, haha. Baby steps I suppose.