cirandas.net

ref: master

db/migrate/20140312134218_add_indexes_for_profile_search.rb


1
2
3
4
5
6
7
8
9
class AddIndexesForProfileSearch < ActiveRecord::Migration
  def self.up
    add_index :profiles, :created_at
  end

  def self.down
    remove_index :profiles, :created_at
  end
end