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