Class: AddIndex

Inherits:
ActiveRecord::Migration
  • Object
show all
Defined in:
lib/rbitter/records_migrate/20150327_add_index.rb

Instance Method Summary collapse

Instance Method Details

#changeObject



9
10
11
# File 'lib/rbitter/records_migrate/20150327_add_index.rb', line 9

def change
  up
end

#upObject



5
6
7
# File 'lib/rbitter/records_migrate/20150327_add_index.rb', line 5

def up
  add_index :records, :tweetid
end