Lesson 2/7 no-migration-file


#1

Hi.

I've read older posts about this problem and it seems that there is still the same issue.
I've tried this on a different computers/browsers/days of the week.
No luck.

So there is a way to make it manually? I want to continue the course. Any help?

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


#2

Hi @flynn84,

You should report this as a bug through the form below the instructions on the left first, but then do this:

  1. Create a file called [Unix timestamp]_create_messages.rb. You can get a Unix timestamp to put at the beginning here: https://www.epochconverter.com/
  2. Put this code in the file:
Click to view

class CreateMessages < ActiveRecord::Migration
  def change
    create_table :messages do |t|
			t.text :content
      t.timestamps
    end
  end
end

After that, you should be able to continue :slight_smile:


#3

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