5
0
Fork 0
mirror of https://0xacab.org/sutty/sutty synced 2024-11-14 23:31:41 +00:00
panel/db/migrate/20190711183726_add_unique_to_site_name.rb
2019-07-11 16:00:53 -03:00

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