cirandas.net

ref: master

db/migrate/20130117132943_remove_index_articles_on_name.rb


1
2
3
4
5
6
7
8
9
class RemoveIndexArticlesOnName < ActiveRecord::Migration
  def self.up
    remove_index :articles, :name
  end

  def self.down
    add_index :articles, :name
  end
end