Dedupe follows

This commit is contained in:
Kyle Drake 2015-08-13 19:01:13 -05:00
parent 1efe0d486b
commit b5920d8ba8
2 changed files with 22 additions and 0 deletions

View file

@ -0,0 +1,9 @@
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