name no estaba indexado!
All checks were successful
ci/woodpecker/push/woodpecker Pipeline was successful

This commit is contained in:
f 2022-03-14 17:35:35 -03:00
parent d9faecf1bd
commit 3ff7e4aa41

View file

@ -4,15 +4,11 @@
class AddSerialNumberToRaspberry < ActiveRecord::Migration[6.1]
def up
add_column :raspberries, :serial_number, :string
remove_index :raspberries, :name
add_index :raspberries, :serial_number, unique: true
end
def down
remove_index :raspberries, :serial_number
add_index :raspberries, :name, unique: true
remove_column :raspberries, :serial_number
end
end