mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-24 10:46:21 +00:00
5c2e5fd62e
`unique: true` es un parámetro de `add_index` no de `add_column`.
10 lines
298 B
Ruby
10 lines
298 B
Ruby
# 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
|