neocities/migrations/073_add_follow_uniqueness.rb
2015-08-13 19:01:13 -05:00

9 lines
228 B
Ruby

Sequel.migration do
up {
DB['alter table follows add constraint one_follow_per_site unique (site_id, actioning_site_id)'].first
}
down {
DB['alter table follows drop constraint one_follow_per_site'].first
}
end