class AddMissingIdColumns < ActiveRecord::Migration
  def up
    add_column :category_featured_topics, :id, :primary_key
    add_column :topic_users, :id, :primary_key
  end

  def down
    remove_column :category_featured_topics, :id
    remove_column :topic_users, :id
  end
end
Add primary key `id` to `category_featured_topics` and `topic_users`
Add primary key `id` to `category_featured_topics` and `topic_users`