discourse/db/migrate/20130509041351_add_unique_name_to_groups.rb

6 lines
127 B
Ruby

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