2
0
mirror of https://github.com/moebooru/moebooru synced 2025-08-22 18:07:25 +00:00

Nuke all votes with score less than 1.

This commit is contained in:
edogawaconan 2014-04-27 13:49:52 +09:00
parent 05065a7472
commit f6ac0a727a

View File

@ -0,0 +1,12 @@
class RemoveNonVotes < ActiveRecord::Migration
class PostVote < ActiveRecord::Base
end
def up
PostVote.where('score < 1').delete_all
end
def down
ActiveRecord::IrreversibleMigration
end
end