creddit/db/migrate/20150716050055_add_index_to_subcreddit_slug.rb

6 lines
128 B
Ruby
Raw Permalink Normal View History

class AddIndexToSubcredditSlug < ActiveRecord::Migration
def change
add_index :subcreddits, :slug, unique: true
end
end