femslash-city/migrations/093_unique_username_constraint.rb

9 lines
131 B
Ruby
Raw Normal View History

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