discourse/db/migrate/20130509041351_add_unique_n...

6 lines
127 B
Ruby
Raw Normal View History

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