discourse/db/migrate/20130509041351_add_unique_n...

8 lines
158 B
Ruby

# frozen_string_literal: true
class AddUniqueNameToGroups < ActiveRecord::Migration[4.2]
def change
add_index :groups, [:name], unique: true
end
end