5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-16 15:31:43 +00:00

Merge branch 'uniqueness' into 'rails'

Agregar índices únicos que pensábamos que teníamos

See merge request sutty/sutty!59
This commit is contained in:
Maki 2021-10-04 17:53:29 +00:00
commit 42896a5f33

View file

@ -0,0 +1,10 @@
# frozen_string_literal: true
# Agrega índices únicos que pensábamos que ya existían.
class AddUniqueness < ActiveRecord::Migration[6.1]
def change
add_index :designs, :name, unique: true
add_index :designs, :gem, unique: true
add_index :licencias, :name, unique: true
end
end