Question: This sounds very simple, but I am frustrated for the past few hours to get this done.
I am not able to see "Macros" sub menu under "Tools" menu in Visual Studio 2008. 

I go to Tools->Customize->Commands. 
Select Tools under Categories and click Rearrange Commands. Instead of showing me the Tools Menu it shows me Files. 

Am I doing something wrong? Or is it a bug in VS 2008?

Answer: 
Be sure that your file name and class name say the same thing(except the class name is camel cased).The contents of your migration file should look something like this, simplified them a bit too:

```
#20090106022023_create_articles.rb
class CreateArticles < ActiveRecord::Migration   
  def self.up
    create_table :articles do |t|
      t.belongs_to :user, :category
      t.string :title
      t.text :synopsis, :limit => 1000
      t.text :body, :limit => 20000
      t.boolean :published, :default => false
      t.datetime :published_at
      t.timestamps
    end
  end

  def self.down
    drop_table :articles
  end
end

```
The top answer solved for me. Just leaving this here in case it helps.

### Example

If your migration file is called

```
20210213040840_add_first_initial_only_to_users.rb

```

then the class name in your migration file should be

```
AddFirstInitialOnlyToUsers

```

Note: if the class name doesn't match, it will error even if the difference is just a lower case `t` instead of an upper case 'T' in 'To' - so be careful of that!