Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
tree: 62e696b68c
Fetching contributors…

Cannot retrieve contributors at this time

file 5 lines (5 sloc) 0.134 kb
1 2 3 4 5
class AddIndexToCategoryName < ActiveRecord::Migration
  def change
    add_index :categories, :category_name, unique: true
  end
end
Something went wrong with that request. Please try again.