Ruby on Rails


#1



https://www.codecademy.com/en/courses/learn-rails/lessons/one-model/exercises/one-model-model?action=resume


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


#2

The colon belongs with the symbol, :content


#3

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