1
0
Fork 0
mirror of https://github.com/neocities/neocities.git synced 2025-05-14 08:27:19 +02:00
neocities/migrations/093_unique_username_constraint.rb
2016-12-08 15:26:12 -06:00

8 lines
131 B
Ruby

Sequel.migration do
up {
DB['ALTER TABLE sites ADD CONSTRAINT uniqueusername UNIQUE (username)'].first
}
down {
}
end