neocities/migrations/093_unique_username_constraint.rb

9 lines
131 B
Ruby
Raw Permalink Normal View History

2016-12-08 15:26:12 -06:00
Sequel.migration do
up {
DB['ALTER TABLE sites ADD CONSTRAINT uniqueusername UNIQUE (username)'].first
}
down {
}
end