Class: AddIndexByUserIdToRecorderRevisions

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/generators/recorder/templates/add_index_by_user_id_to_recorder_revisions.rb

Overview

This migration adds number column to the ‘revisions` table.

Instance Method Summary collapse

Instance Method Details

#changeObject



3
4
5
# File 'lib/generators/recorder/templates/add_index_by_user_id_to_recorder_revisions.rb', line 3

def change
  add_index :recorder_revisions, :user_id
end