mirror of
https://github.com/moebooru/moebooru
synced 2025-08-22 09:57:31 +00:00
Nuke all votes with score less than 1.
This commit is contained in:
parent
05065a7472
commit
f6ac0a727a
12
db/migrate/20140427041839_remove_non_votes.rb
Normal file
12
db/migrate/20140427041839_remove_non_votes.rb
Normal 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
|
Loading…
x
Reference in New Issue
Block a user