Ruby on Rails

<PLEASE USE THE FOLLOWING TEMPLATE TO HELP YOU CREATE A GREAT POST!>

<Below this line, add a link to the EXACT exercise that you are stuck at.>
https://www.codecademy.com/en/courses/learn-rails/lessons/one-model/exercises/one-model-model?action=resume

<In what way does your code behave incorrectly? Include ALL error messages.>
I put the code in the db/migrate/ file but it comes up with the error
“Remember to add t.text :content to the migration file”.

```

Replace this line with your code.
class CreateMessages < ActiveRecord::Migration
def change
create_table :messages do |t|
t.text: content
t.timestamp
end
end
end

<do not remove the three backticks above>

The colon belongs with the symbol, :content

1 Like

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.