demarches-normaliennes/db/migrate/20180423102102_add_unique_index_to_services.rb
2018-05-18 16:21:26 +02:00

5 lines
151 B
Ruby

class AddUniqueIndexToServices < ActiveRecord::Migration[5.2]
def change
add_index :services, [:administrateur_id, :nom], unique: true
end
end