mirror of
https://0xacab.org/sutty/sutty
synced 2024-11-16 15:31:43 +00:00
9 lines
224 B
Ruby
9 lines
224 B
Ruby
# frozen_string_literal: true
|
|
|
|
# Los nombres de los sitios son únicos
|
|
class AddUniqueToSiteName < ActiveRecord::Migration[5.2]
|
|
def change
|
|
remove_index :sites, :name
|
|
add_index :sites, :name, unique: true
|
|
end
|
|
end
|