demarches-normaliennes/db/migrate/20180423102102_add_unique_index_to_services.rb

6 lines
151 B
Ruby
Raw Normal View History

2018-04-17 16:11:49 +02:00
class AddUniqueIndexToServices < ActiveRecord::Migration[5.2]
def change
add_index :services, [:administrateur_id, :nom], unique: true
end
end